Make it a little clearer in the code that we aren't using STDERR outside command...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 7 Dec 2007 04:21:35 +0000 (04:21 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 7 Dec 2007 04:21:35 +0000 (04:21 +0000)
includes/Exception.php

index 1ae28de..3756fb7 100644 (file)
@@ -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 ) {