Skip to content

Commit

Permalink
fix line lengths in locallib.php
Browse files Browse the repository at this point in the history
  • Loading branch information
NJahreis authored Apr 12, 2024
1 parent bdfd150 commit d26ec31
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(), ];
}
Expand Down

0 comments on commit d26ec31

Please sign in to comment.