]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20677 simplified debugging of deprecated use of error()
authorPetr Skoda <skodak@moodle.org>
Fri, 30 Oct 2009 13:29:14 +0000 (13:29 +0000)
committerPetr Skoda <skodak@moodle.org>
Fri, 30 Oct 2009 13:29:14 +0000 (13:29 +0000)
lib/outputrenderers.php

index 84ac2dde2db10474c2589c350a191e4e652d8356..407586f7681d02623afe0761148d07e2302576b9 100644 (file)
@@ -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)) {