Append the StatusNet version to all local, static CSS references
This commit is contained in:
parent
d41a0a5ed0
commit
fa66755508
|
@ -405,10 +405,11 @@ class HTMLOutputter extends XMLOutputter
|
||||||
if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment))
|
if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment))
|
||||||
{
|
{
|
||||||
if(file_exists(Theme::file($src,$theme))){
|
if(file_exists(Theme::file($src,$theme))){
|
||||||
$src = Theme::path($src, $theme) . '?version=' . STATUSNET_VERSION;
|
$src = Theme::path($src, $theme);
|
||||||
}else{
|
}else{
|
||||||
$src = common_path($src);
|
$src = common_path($src);
|
||||||
}
|
}
|
||||||
|
$src.= '?version=' . STATUSNET_VERSION;
|
||||||
}
|
}
|
||||||
$this->element('link', array('rel' => 'stylesheet',
|
$this->element('link', array('rel' => 'stylesheet',
|
||||||
'type' => 'text/css',
|
'type' => 'text/css',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user