Fix for r33432: isArticle() is to check if the content displayed is the one of the...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 8 Jan 2011 19:21:37 +0000 (19:21 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 8 Jan 2011 19:21:37 +0000 (19:21 +0000)
includes/Exception.php

index ff5d4b1..5e7e1ca 100644 (file)
@@ -22,7 +22,7 @@ class MWException extends Exception {
        function useOutputPage() {
                return $this->useMessageCache() &&
                        !empty( $GLOBALS['wgFullyInitialised'] ) &&
-                       ( !empty( $GLOBALS['wgArticle'] ) || ( !empty( $GLOBALS['wgOut'] ) && !$GLOBALS['wgOut']->isArticle() ) ) &&
+                       ( !empty( $GLOBALS['wgArticle'] ) || ( !empty( $GLOBALS['wgOut'] ) && !$GLOBALS['wgOut']->isArticleRelated() ) ) &&
                        !empty( $GLOBALS['wgTitle'] );
        }