]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check theme first for CSS files, then use the non-theme path.
authorCraig Andrews <candrews@integralblue.com>
Thu, 6 Aug 2009 17:05:40 +0000 (13:05 -0400)
committerCraig Andrews <candrews@integralblue.com>
Thu, 6 Aug 2009 17:07:14 +0000 (13:07 -0400)
Fixes CSS links in plugins

lib/htmloutputter.php

index 74876523a64e2a6913c50f0f80b79b0fb5b767cb..f4445b44f8d998beafc81095cfee7d7580068b21 100644 (file)
@@ -376,7 +376,11 @@ class HTMLOutputter extends XMLOutputter
         $url = parse_url($src);
         if(! ($url->scheme || $url->host || $url->query || $url->fragment))
         {
-            $src = theme_path($src) . '?version=' . LACONICA_VERSION;
+            if(file_exists(theme_file($src,$theme))){
+               $src = theme_path($src, $theme) . '?version=' . LACONICA_VERSION;
+            }else{
+               $src = common_path($src);
+            }
         }
         $this->element('link', array('rel' => 'stylesheet',
                                 'type' => 'text/css',