added tabs and new lines for better source readability
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Jun 2009 12:34:09 +0000 (12:34 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Jun 2009 12:34:09 +0000 (12:34 +0000)
includes/OutputPage.php

index 37b1b44..d0644a7 100644 (file)
@@ -93,7 +93,7 @@ class OutputPage {
                        array_push( $this->mKeywords, $text );
                }
        }
-       function addScript( $script ) { $this->mScripts .= "\t\t".$script; }
+       function addScript( $script ) { $this->mScripts .= "\t\t" . $script . "\n"; }
        
        function addExtensionStyle( $url ) {
                $linkarr = array( 'rel' => 'stylesheet', 'href' => $url, 'type' => 'text/css' );
@@ -128,7 +128,7 @@ class OutputPage {
         */
        function addInlineScript( $script ) {
                global $wgJsMimeType;
-               $this->mScripts .= "<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n$script\n/*]]>*/</script>";
+               $this->mScripts .= "\t\t<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n\t\t$script\n\t\t/*]]>*/</script>\n";
        }
 
        function getScript() {