use $wgStyleVersion in handy-dandy $wgOut->addStyle() func
This commit is contained in:
parent
46a6e4efe6
commit
ab8d57e44b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue