mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-72920 core_renderer: do not show debug footer during install
This commit is contained in:
parent
8af7bec81e
commit
9ded7b06dc
@ -863,6 +863,11 @@ class core_renderer extends renderer_base {
|
||||
global $CFG;
|
||||
$output = '';
|
||||
|
||||
if (during_initial_install()) {
|
||||
// Debugging info can not work before install is finished.
|
||||
return $output;
|
||||
}
|
||||
|
||||
// This function is normally called from a layout.php file
|
||||
// but some of the content won't be known until later, so we return a placeholder
|
||||
// for now. This will be replaced with the real content in the footer.
|
||||
@ -4878,7 +4883,7 @@ EOD;
|
||||
*/
|
||||
public function moodle_release() {
|
||||
global $CFG;
|
||||
if (is_siteadmin()) {
|
||||
if (!during_initial_install() && is_siteadmin()) {
|
||||
return $CFG->release;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user