From e2f491f9b981670e27f87e9d92f4fabb0a045e6a Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 25 Jun 2009 00:00:51 +0000 Subject: [PATCH] Followup to r52379: Also remove var declarations. --- includes/Skin.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index aa11d814ab..6ff984b177 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -333,14 +333,21 @@ class Skin extends Linker { static function makeVariablesScript( $data ) { global $wgJsMimeType; - $r = array( "\n"; + # No need for ; since the script is terminating + $r[] = "\n/*]]>*/\n"; - return implode( "\n", $r ); + return implode( $r ); } /** -- 2.20.1