summaryrefslogtreecommitdiff
path: root/lib/htmloutputter.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-06 13:05:40 -0400
committerCraig Andrews <candrews@integralblue.com>2009-08-06 13:07:14 -0400
commite386a75d1b5271cfcd51825d0d2a420ef66d3622 (patch)
treee095e94f2be2b091681375ffc0798b3ca3d7372e /lib/htmloutputter.php
parent406020df38642b59f59b42d59c617487386bd4d9 (diff)
Check theme first for CSS files, then use the non-theme path.
Fixes CSS links in plugins
Diffstat (limited to 'lib/htmloutputter.php')
-rw-r--r--lib/htmloutputter.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php
index 74876523a..f4445b44f 100644
--- a/lib/htmloutputter.php
+++ b/lib/htmloutputter.php
@@ -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',