mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-31109 fix maintenance link value in get_string()
This commit is contained in:
parent
3a652da73a
commit
19df6d4fae
1 changed files with 4 additions and 2 deletions
|
@ -339,8 +339,10 @@ class core_admin_renderer extends plugin_renderer_base {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->warning(get_string('sitemaintenancewarning2', 'admin',
|
$url = new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'));
|
||||||
new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'))));
|
$url = $url->out(); // get_string() does not support objects in params
|
||||||
|
|
||||||
|
return $this->warning(get_string('sitemaintenancewarning2', 'admin', $url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue