From 2c0901cb5a88292e8eacf2eff94e777d4116fa78 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 20 Jul 2009 06:18:16 +0000 Subject: [PATCH] MDL-19010: In developer debug mode, print information about this page in the footer. --- lib/outputlib.php | 3 ++ lib/pagelib.php | 12 +++++++ theme/anomaly/footer.html | 74 +++++++++++++++++---------------------- 3 files changed, 47 insertions(+), 42 deletions(-) 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()) { ?> -
- - - - - - - - +