diff --git a/classes/studyplan.php b/classes/studyplan.php index 2064e67..6a8e358 100644 --- a/classes/studyplan.php +++ b/classes/studyplan.php @@ -183,15 +183,15 @@ class studyplan { $file->get_filename(), false // Do not force download of the file. ); - return $url->out; + return $url->out(); } } // Try the configured default in settings. $defaulticon = get_config('local_treestudyplan', 'defaulticon'); if (empty($defaulticon)) { - // Fall back to the standard (ugly) default image. - $url = new \moodle_url($CFG->wwwroot . "/local/treestudyplan/pix/default_icon.png"); + // Fall back to the standard (ugly) default image. + $url = new \moodle_url($CFG->wwwroot . "/local/treestudyplan/pix/default_icon.png"); } else { $url = \moodle_url::make_pluginfile_url( \context_system::instance()->id,