}
}
function addScript( $script ) {
- $this->mScripts .= "\t\t" . $script . "\n";
+ $this->mScripts .= $script . "\n";
}
/**
* @param string $script JavaScript text, no <script> tags
*/
function addInlineScript( $script ) {
- $this->mScripts .= "\t\t" . Html::inlineScript( "\n\t\t$script\n\t\t" ) . "\n";
+ $this->mScripts .= Html::inlineScript( "\n$script\n" ) . "\n";
}
function getScript() {
$ret .= "xml:lang=\"$wgContLanguageCode\" lang=\"$wgContLanguageCode\" dir=\"$dir\">\n";
}
- $ret .= "<head>\n\t<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n\t";
+ $ret .= "<head>\n";
+ $ret .= "<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n";
$ret .= implode( "\n", array(
$this->getHeadLinks(),
$this->buildCssLinks(),
}
}
- return implode( "\n\t", $tags ) . "\n";
+ return implode( "\n", $tags ) . "\n";
}
/**
$links[] = $link;
}
- return "\t" . implode( "\n\t", $links );
+ return implode( "\n", $links );
}
protected function styleLink( $style, $options ) {
'action=raw&ctype='.$wgJsMimeType );
$wgOut->addScriptFile( $userjs );
}
- return "\t" . $vars . "\t" . $out->mScripts;
+ return $vars . "\n" . $out->mScripts;
}
/**
* @return String HTML-wrapped JS code to be put before </body>
*/
function bottomScripts() {
- $bottomScriptText = "\n\t\t" . Html::inlineScript( 'if (window.runOnloadHook) runOnloadHook();' ) . "\n";
+ $bottomScriptText = "\n" . Html::inlineScript( 'if (window.runOnloadHook) runOnloadHook();' ) . "\n";
wfRunHooks( 'SkinAfterBottomScripts', array( $this, &$bottomScriptText ) );
return $bottomScriptText;
}