From ef76e24bf93697f2c88d83f968d5e60675c9bc02 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 24 Nov 2021 19:44:30 +0100 Subject: [PATCH] MDL-73160 profiling: Fix links to profiling runs When debug_footer_html() was split from standard_footer_html() in MDL-71965 the $SCRIPT global declaration was left behind. This just moves it wherever it's needed. --- lib/outputrenderers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index e3334b5c65c..f82147dea43 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -821,7 +821,7 @@ class core_renderer extends renderer_base { * @return string HTML fragment. */ public function standard_footer_html() { - global $CFG, $SCRIPT; + global $CFG; $output = ''; if (during_initial_install()) { @@ -862,7 +862,7 @@ class core_renderer extends renderer_base { * @return string HTML fragment. */ public function debug_footer_html() { - global $CFG; + global $CFG, $SCRIPT; $output = ''; if (during_initial_install()) {