From 96a626aaa4829e116baa0194d6597ff2747c0310 Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Fri, 27 Dec 2024 23:22:04 +0100 Subject: [PATCH] Repaired issue with icon urls --- classes/studyplan.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,