@@ -112,7 +112,7 @@ |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | public function instance_allow_multiple() { |
115 | - return false; |
|
115 | + return false; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | public function has_config() { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | if ($this->page->course->id == SITEID) { |
58 | 58 | $courses = self::get_featured_courses(); |
59 | - require_once($CFG->libdir. '/coursecatlib.php'); |
|
59 | + require_once($CFG->libdir.'/coursecatlib.php'); |
|
60 | 60 | $chelper = new coursecat_helper(); |
61 | 61 | foreach ($courses as $course) { |
62 | 62 | |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | foreach ($course->get_course_overviewfiles() as $file) { |
84 | 84 | $isimage = $file->is_valid_image(); |
85 | 85 | $url = file_encode_url("{$CFG->wwwroot}/pluginfile.php", |
86 | - '/'. $file->get_contextid(). '/'. $file->get_component(). '/'. |
|
87 | - $file->get_filearea(). $file->get_filepath(). $file->get_filename(), !$isimage); |
|
86 | + '/'.$file->get_contextid().'/'.$file->get_component().'/'. |
|
87 | + $file->get_filearea().$file->get_filepath().$file->get_filename(), !$isimage); |
|
88 | 88 | if ($isimage) { |
89 | 89 | $contentimages .= html_writer::tag('div', |
90 | 90 | html_writer::empty_tag('img', array('src' => $url, 'style' => 'max-height: 150px')), |
@@ -98,9 +98,9 @@ discard block |
||
98 | 98 | array('class' => 'coursefile fp-filename-icon')); |
99 | 99 | } |
100 | 100 | } |
101 | - $content .= $contentimages. $contentfiles; |
|
101 | + $content .= $contentimages.$contentfiles; |
|
102 | 102 | |
103 | - $this->content->text .= $content. '</div>'; |
|
103 | + $this->content->text .= $content.'</div>'; |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 |