use $wgStyleVersion in handy-dandy $wgOut->addStyle() func

This commit is contained in:
Brion Vibber 2007-05-16 19:54:58 +00:00
parent 46a6e4efe6
commit ab8d57e44b

View file

@ -75,11 +75,11 @@ class OutputPage {
function addKeyword( $text ) { array_push( $this->mKeywords, $text ); }
function addScript( $script ) { $this->mScripts .= "\t\t".$script; }
function addStyle( $style ) {
global $wgStylePath;
global $wgStylePath, $wgStyleVersion;
$this->addLink(
array(
'rel' => 'stylesheet',
'href' => $wgStylePath . '/' . $style ) );
'href' => $wgStylePath . '/' . $style . '?' . $wgStyleVersion ) );
}
/**