From ef87866bf2d62137ae2bebc4b7b1419a19567ac3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 15 Jul 2008 19:51:18 +0000 Subject: [PATCH] Added some tabs in the generated html so that it is easier to read the element --- includes/Skin.php | 8 ++++---- includes/SkinTemplate.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 248a9e3d62..c625814214 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -280,14 +280,14 @@ class Skin extends Linker { static function makeVariablesScript( $data ) { global $wgJsMimeType; - $r = "\n"; + $r[] = "/*]]>*/"; - return $r; + return implode( "\n\t\t", $r ); } /** diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index ae894cc98b..eb8e3b6636 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1015,10 +1015,10 @@ class SkinTemplate extends Skin { # If we use any dynamic CSS, make a little CDATA block out of it. $s = ''; foreach( $stylesheets as $link ) { - $s .= "@import \"$link\";\n"; + $s .= "\t\t\t@import \"$link\";\n"; } $s .= $rawcss; - if( $s != '' ) $this->usercss = "/**/"; + if( $s != '' ) $this->usercss = "/**/"; wfProfileOut( __METHOD__ ); } -- 2.20.1