diff --git a/locallib.php b/locallib.php index 096ce0d01ad..97fd5f11093 100644 --- a/locallib.php +++ b/locallib.php @@ -740,8 +740,10 @@ function theme_boost_union_get_additionalresources_templatecontext() { // Iterate over the files and fill the templatecontext of the file list. $filesforcontext = []; foreach ($files as $af) { - $urlpersistent = new moodle_url('/pluginfile.php/' . $systemcontext->id . '/theme_boost_union/additionalresources/0/'.$af->get_filename()); - $urlrevisioned = new moodle_url('/pluginfile.php/' . $systemcontext->id . '/theme_boost_union/additionalresources/'.theme_get_revision(). + $urlpersistent = new moodle_url('/pluginfile.php/' . $systemcontext->id . + '/theme_boost_union/additionalresources/0/'.$af->get_filename()); + $urlrevisioned = new moodle_url('/pluginfile.php/' . $systemcontext->id . + '/theme_boost_union/additionalresources/'.theme_get_revision(). '/'.$af->get_filename()); $filesforcontext[] = ['filename' => $af->get_filename(), 'filetype' => $af->get_mimetype(), @@ -799,7 +801,8 @@ function theme_boost_union_get_customfonts_templatecontext() { } // Otherwise, fill the templatecontext of the file list. - $urlpersistent = new moodle_url('/pluginfile.php/' . $systemcontext->id . '/theme_boost_union/customfonts/0/'.$filename); + $urlpersistent = new moodle_url('/pluginfile.php/' . $systemcontext->id . + '/theme_boost_union/customfonts/0/'.$filename); $filesforcontext[] = ['filename' => $filename, 'fileurlpersistent' => $urlpersistent->out(), ]; }