From: tjhunt Date: Mon, 20 Jul 2009 06:18:16 +0000 (+0000) Subject: MDL-19010: In developer debug mode, print information about this page in the footer. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2c0901cb5a88292e8eacf2eff94e777d4116fa78;p=moodle.git MDL-19010: In developer debug mode, print information about this page in the footer. --- diff --git a/lib/outputlib.php b/lib/outputlib.php index 30626b8ed1..eb6c049771 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -1718,6 +1718,9 @@ class moodle_core_renderer extends moodle_renderer_base { // 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 {@link footer()}. $output = self::PERFORMANCE_INFO_TOKEN; + if (debugging('', DEBUG_DEVELOPER)) { + $output .= '
This page is: ' . $this->page->debug_summary() . '
'; + } if (debugging()) { $output .= '
+ + + + + - } - - - if (!empty($performanceinfo)) { + +This page is: ' . $this->page->debug_summary() . ''; + } if (debugging()) { ?> -
- - - - - - - - +