From 8ffb7299f216c2450e86593453c7ef11f0de40d8 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sat, 8 Feb 2014 15:03:50 -0400 Subject: [PATCH] Do not use OutputPage to output exceptions in Installer 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Exception.php b/includes/Exception.php index 45b314d733..e91a178f43 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -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' ); } /** -- 2.20.1