Skip to content

Commit

Permalink
MDL-70579 course: filter site fullname when exporting course content.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jan 6, 2021
1 parent 7eb99ce commit eee8bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/content/export/zipwriter.php
Expand Up @@ -255,7 +255,7 @@ public function add_file_from_template(
$templatedata->global = (object) [
'righttoleft' => right_to_left(),
'language' => str_replace('_', '-', current_language()),
'sitename' => $SITE->fullname,
'sitename' => format_string($SITE->fullname, true, ['context' => context_system::instance()]),
'siteurl' => $CFG->wwwroot,
'pathtotop' => $this->get_relative_context_path($context, $this->rootcontext, '/'),
'contentexportfooter' => get_string('contentexport_footersummary', 'core', (object) [
Expand Down

0 comments on commit eee8bf0

Please sign in to comment.