From: Sarven Capadisli Date: Tue, 26 May 2009 03:34:00 +0000 (+0000) Subject: Reusing base stylesheet (instead of hoping for FB to import it) in FB X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c93031c2aa49b8a044e896ca1e07f5f4f429308e;p=quix0rs-gnu-social.git Reusing base stylesheet (instead of hoping for FB to import it) in FB app. --- diff --git a/lib/facebookaction.php b/lib/facebookaction.php index 00db79400d..637a6284d9 100644 --- a/lib/facebookaction.php +++ b/lib/facebookaction.php @@ -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');