From 83267ec08ac6747b77822d249bf4b1bbb6cb71d5 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 30 Oct 2009 13:29:14 +0000 Subject: [PATCH] MDL-20677 simplified debugging of deprecated use of error() --- lib/outputrenderers.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 84ac2dde2d..407586f768 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -1912,11 +1912,9 @@ class moodle_core_renderer extends moodle_renderer_base { * @param string $link Link for the Continue button * @param array $backtrace The execution backtrace * @param string $debuginfo Debugging information - * @param bool $showerrordebugwarning Whether or not to show a debugging warning * @return string the HTML to output. */ - public function fatal_error($message, $moreinfourl, $link, $backtrace, - $debuginfo = null, $showerrordebugwarning = false) { + public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginfo = null) { $output = ''; @@ -2421,11 +2419,9 @@ class cli_core_renderer extends moodle_core_renderer { * @param string $link Link for the Continue button * @param array $backtrace The execution backtrace * @param string $debuginfo Debugging information - * @param bool $showerrordebugwarning Whether or not to show a debugging warning * @return string A template fragment for a fatal error */ - public function fatal_error($message, $moreinfourl, $link, $backtrace, - $debuginfo = null, $showerrordebugwarning = false) { + public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginfo = null) { $output = "!!! $message !!!\n"; if (debugging('', DEBUG_DEVELOPER)) { -- 2.39.5