From 50c319ef09d0046b2fbc390ffcfdd100e021fb44 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 18 Oct 2010 20:16:19 +0000 Subject: [PATCH] ResourceLoader: Clear warnings before echo'ing output --- includes/ResourceLoader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/ResourceLoader.php b/includes/ResourceLoader.php index 49fb2f1d0e..1d4a202229 100644 --- a/includes/ResourceLoader.php +++ b/includes/ResourceLoader.php @@ -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__ ); } -- 2.20.1