From f3aa97bd5f4129fdf4fd33ba44e6d4b49c50b17c Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 8 Jan 2011 19:21:37 +0000 Subject: [PATCH 1/1] Fix for r33432: isArticle() is to check if the content displayed is the one of the article, isArticleRelated() is more appropriate here --- includes/Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Exception.php b/includes/Exception.php index ff5d4b196f..5e7e1ca579 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -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'] ); } -- 2.20.1