From: Alexandre Emsenhuber Date: Sat, 8 Jan 2011 19:21:37 +0000 (+0000) Subject: Fix for r33432: isArticle() is to check if the content displayed is the one of the... X-Git-Tag: 1.31.0-rc.0~32689 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f3aa97bd5f4129fdf4fd33ba44e6d4b49c50b17c;p=lhc%2Fweb%2Fwiklou.git Fix for r33432: isArticle() is to check if the content displayed is the one of the article, isArticleRelated() is more appropriate here --- 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'] ); }