Don't unset() $wgOut in AjaxDispatcher.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 29 Jul 2012 19:29:44 +0000 (21:29 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 29 Jul 2012 19:58:03 +0000 (21:58 +0200)
It's now totally useless since we are storing it
in the RequestContext object, so this won't prevent
the MediaWiki class to use it.

Change-Id: I10a15a16769f8f208c13bfb9ad38738562c11eac

includes/AjaxDispatcher.php

index b457ea6..b00cf30 100644 (file)
@@ -97,7 +97,7 @@ class AjaxDispatcher {
         * request.
         */
        function performAction() {
-               global $wgAjaxExportList, $wgOut, $wgUser;
+               global $wgAjaxExportList, $wgUser;
 
                if ( empty( $this->mode ) ) {
                        return;
@@ -157,7 +157,6 @@ class AjaxDispatcher {
                        }
                }
 
-               $wgOut = null;
                wfProfileOut( __METHOD__ );
        }
 }