r51639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51638‎ | r51639 | r51640 >
Date:12:34, 9 June 2009
Author:ialex
Status:ok
Tags:
Comment:
added tabs and new lines for better source readability
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -93,7 +93,7 @@
9494 array_push( $this->mKeywords, $text );
9595 }
9696 }
97 - function addScript( $script ) { $this->mScripts .= "\t\t".$script; }
 97+ function addScript( $script ) { $this->mScripts .= "\t\t" . $script . "\n"; }
9898
9999 function addExtensionStyle( $url ) {
100100 $linkarr = array( 'rel' => 'stylesheet', 'href' => $url, 'type' => 'text/css' );
@@ -128,7 +128,7 @@
129129 */
130130 function addInlineScript( $script ) {
131131 global $wgJsMimeType;
132 - $this->mScripts .= "<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n$script\n/*]]>*/</script>";
 132+ $this->mScripts .= "\t\t<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n\t\t$script\n\t\t/*]]>*/</script>\n";
133133 }
134134
135135 function getScript() {

Status & tagging log