Move doNothing return check above global declarations
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 27 Dec 2008 05:09:54 +0000 (05:09 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 27 Dec 2008 05:09:54 +0000 (05:09 +0000)
includes/OutputPage.php

index f8dba71..ab97478 100644 (file)
@@ -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 ) {