From 72736d11d4abbe0cdf84df39c5a81117ce3a68b8 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 7 Dec 2007 04:21:35 +0000 Subject: [PATCH] Make it a little clearer in the code that we aren't using STDERR outside command-line mode, by inlining a one-line function that was only called once in the code base. --- includes/Exception.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/Exception.php b/includes/Exception.php index 1ae28deeca..3756fb7f1e 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -92,18 +92,13 @@ class MWException extends Exception } } - /** Print the exception report using text */ - function reportText() { - fwrite( STDERR, $this->getText() ); - } - /* Output a report about the exception and takes care of formatting. * It will be either HTML or plain text based on $wgCommandLineMode. */ function report() { global $wgCommandLineMode; if ( $wgCommandLineMode ) { - $this->reportText(); + fwrite( STDERR, $this->getText() ); } else { $log = $this->getLogMessage(); if ( $log ) { -- 2.20.1