r37718 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37717‎ | r37718 | r37719 >
Date:21:33, 15 July 2008
Author:brion
Status:old
Tags:
Comment:
Revert r37709 so I can cleanly revert other changes to these lines
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -1015,10 +1015,10 @@
10161016 # If we use any dynamic CSS, make a little CDATA block out of it.
10171017 $s = '';
10181018 foreach( $stylesheets as $link ) {
1019 - $s .= "\t\t\t@import \"$link\";\n";
 1019+ $s .= "@import \"$link\";\n";
10201020 }
10211021 $s .= $rawcss;
1022 - if( $s != '' ) $this->usercss = "/*<![CDATA[*/\n{$s}\t\t/*]]>*/";
 1022+ if( $s != '' ) $this->usercss = "/*<![CDATA[*/\n{$s}/*]]>*/";
10231023
10241024 wfProfileOut( __METHOD__ );
10251025 }
Index: trunk/phase3/includes/Skin.php
@@ -280,14 +280,14 @@
281281 static function makeVariablesScript( $data ) {
282282 global $wgJsMimeType;
283283
284 - $r = array( "<script type= \"$wgJsMimeType\">/*<![CDATA[*/" );
 284+ $r = "<script type= \"$wgJsMimeType\">/*<![CDATA[*/\n";
285285 foreach ( $data as $name => $value ) {
286286 $encValue = Xml::encodeJsVar( $value );
287 - $r[] = "var $name = $encValue;";
 287+ $r .= "var $name = $encValue;\n";
288288 }
289 - $r[] = "/*]]>*/</script>";
 289+ $r .= "/*]]>*/</script>\n";
290290
291 - return implode( "\n\t\t", $r );
 291+ return $r;
292292 }
293293
294294 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r37709Added some tabs in the generated html so that it is easier to read the <head>...ialex19:51, 15 July 2008

Status & tagging log