From 9ded7b06dc799cf2b67bdfb1ded39f2e38694bce Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Wed, 3 Nov 2021 10:34:29 +0100 Subject: [PATCH] MDL-72920 core_renderer: do not show debug footer during install --- lib/outputrenderers.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index c7cb55def8f..203c21cc923 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -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; } }