]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Append the StatusNet version to all local, static CSS references
authorCraig Andrews <candrews@integralblue.com>
Sat, 5 Dec 2009 03:05:18 +0000 (22:05 -0500)
committerCraig Andrews <candrews@integralblue.com>
Sat, 5 Dec 2009 03:05:18 +0000 (22:05 -0500)
lib/htmloutputter.php

index cf93944e76afe19120c66dbddf124adcd422ebc6..fd448ced5e4e9e311a61093ac4365495fb7d7769 100644 (file)
@@ -405,10 +405,11 @@ class HTMLOutputter extends XMLOutputter
             if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment))
             {
                 if(file_exists(Theme::file($src,$theme))){
-                   $src = Theme::path($src, $theme) . '?version=' . STATUSNET_VERSION;
+                   $src = Theme::path($src, $theme);
                 }else{
                    $src = common_path($src);
                 }
+                $src.= '?version=' . STATUSNET_VERSION;
             }
             $this->element('link', array('rel' => 'stylesheet',
                                     'type' => 'text/css',