ResourceLoader: Clear warnings before echo'ing output
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 18 Oct 2010 20:16:19 +0000 (20:16 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 18 Oct 2010 20:16:19 +0000 (20:16 +0000)
includes/ResourceLoader.php

index 49fb2f1..1d4a202 100644 (file)
@@ -300,7 +300,10 @@ class ResourceLoader {
                        return;
                }
 
-               echo $this->makeModuleResponse( $context, $modules, $missing );
+               $response = $this->makeModuleResponse( $context, $modules, $missing );
+               // Clear any warnings from the buffer
+               ob_clean();
+               echo $response;
 
                wfProfileOut( __METHOD__ );
        }