]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Reusing base stylesheet (instead of hoping for FB to import it) in FB
authorSarven Capadisli <csarven@controlyourself.ca>
Tue, 26 May 2009 03:34:00 +0000 (03:34 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Tue, 26 May 2009 03:34:00 +0000 (03:34 +0000)
app.

lib/facebookaction.php

index 00db79400d39a07c85335175c9606d087063056e..637a6284d9f0b1cbbdd92b40f300b98303a1fd8f 100644 (file)
@@ -97,6 +97,10 @@ class FacebookAction extends Action
     {
         // 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' => theme_path('css/display.css', 'base') . '?ts=' . $ts));
         
         $theme = common_config('site', 'theme');