Brian Wolff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/112243

Change subject: Do not use OutputPage to output exceptions in Installer
......................................................................

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
---
M includes/Exception.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/43/112243/1

diff --git a/includes/Exception.php b/includes/Exception.php
index 45b314d..e91a178 100644
--- a/includes/Exception.php
+++ b/includes/Exception.php
@@ -38,7 +38,8 @@
        function useOutputPage() {
                return $this->useMessageCache() &&
                        !empty( $GLOBALS['wgFullyInitialised'] ) &&
-                       !empty( $GLOBALS['wgOut'] );
+                       !empty( $GLOBALS['wgOut'] ) &&
+                       !defined( 'MEDIAWIKI_INSTALL' );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/112243
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifbbe18accdd6abd93365ac041a7f708067d0cf02
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to