diff options
author | Evan Prodromou <git@evanprodromou.name> | 2009-01-24 10:38:11 +0100 |
---|---|---|
committer | Evan Prodromou <git@evanprodromou.name> | 2009-01-24 10:38:11 +0100 |
commit | 1b07e65277fafde9e8b9e1809e012d4e954fc2c2 (patch) | |
tree | fe701d0998fb59cd26f0ea160b659d3f03ee37e8 /lib/facebookaction.php | |
parent | 8638479cb6287a4c22e485ba71fab4b12a6fc40f (diff) | |
parent | cf7908a9715fe91836aa41d5bcf9f32e33be8644 (diff) |
Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk
Diffstat (limited to 'lib/facebookaction.php')
-rw-r--r-- | lib/facebookaction.php | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/lib/facebookaction.php b/lib/facebookaction.php index 92130e199..c781b86f4 100644 --- a/lib/facebookaction.php +++ b/lib/facebookaction.php @@ -95,21 +95,35 @@ class FacebookAction extends Action function showStylesheets() { + // Add a timestamp to the file so Facebook cache wont ignore our changes + $ts = filemtime(INSTALLDIR.'/theme/base/css/display.css'); $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', - 'href' => getFacebookBaseCSS())); - + 'href' => theme_path('css/display.css', 'base') . '?ts=' . $ts)); + + $theme = common_config('site', 'theme'); + + $ts = filemtime(INSTALLDIR. '/theme/' . $theme .'/css/display.css'); + + $this->element('link', array('rel' => 'stylesheet', + 'type' => 'text/css', + 'href' => theme_path('css/display.css', null) . '?ts=' . $ts)); + + $ts = filemtime(INSTALLDIR.'/theme/base/css/facebookapp.css'); + $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', - 'href' => getFacebookThemeCSS())); + 'href' => theme_path('css/facebookapp.css', 'base') . '?ts=' . $ts)); } function showScripts() { + // Add a timestamp to the file so Facebook cache wont ignore our changes + $ts = filemtime(INSTALLDIR.'/js/facebookapp.js'); + $this->element('script', array('type' => 'text/javascript', - 'src' => getFacebookJS()), - ' '); + 'src' => common_path('js/facebookapp.js') . '?ts=' . $ts)); } /** |