Do not use OutputPage to output exceptions in Installer
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 8 Feb 2014 19:03:50 +0000 (15:03 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Sat, 8 Feb 2014 19:03:50 +0000 (15:03 -0400)
Things don't seem entirely set up correctly with $wgOut's
title object, causing fatals. Seems easier just to output
the exceptions raw.

Bug: 61092
Change-Id: Ifbbe18accdd6abd93365ac041a7f708067d0cf02

includes/Exception.php

index 45b314d..e91a178 100644 (file)
@@ -38,7 +38,8 @@ class MWException extends Exception {
        function useOutputPage() {
                return $this->useMessageCache() &&
                        !empty( $GLOBALS['wgFullyInitialised'] ) &&
-                       !empty( $GLOBALS['wgOut'] );
+                       !empty( $GLOBALS['wgOut'] ) &&
+                       !defined( 'MEDIAWIKI_INSTALL' );
        }
 
        /**