From: Aaron Schulz Date: Sat, 27 Dec 2008 05:09:54 +0000 (+0000) Subject: Move doNothing return check above global declarations X-Git-Tag: 1.31.0-rc.0~43759 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=4c462927ce1c27f03f5427b53db556e5f699d69a;p=lhc%2Fweb%2Fwiklou.git Move doNothing return check above global declarations --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f8dba714a2..ab974785db 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -798,16 +798,13 @@ class OutputPage { * the object, let's actually output it: */ public function output() { + if( $this->mDoNothing ) return; global $wgUser, $wgOutputEncoding, $wgRequest; global $wgContLanguageCode, $wgDebugRedirects, $wgMimeType; global $wgJsMimeType, $wgUseAjax, $wgAjaxWatch; global $wgEnableMWSuggest, $wgUniversalEditButton; global $wgArticle, $wgTitle; - if( $this->mDoNothing ){ - return; - } - wfProfileIn( __METHOD__ ); if ( '' != $this->mRedirect ) {