From: Zach Copley Date: Mon, 8 Dec 2008 05:18:59 +0000 (-0500) Subject: trac750 add timestamp to CSS file to keep Facebook's caching from ignoring our changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f8e60a8fc00b6aca924df077e7e353815dc69fd;p=quix0rs-gnu-social.git trac750 add timestamp to CSS file to keep Facebook's caching from ignoring our changes darcs-hash:20081208051859-7b5ce-5d777044f81edd562a4fe825cfcc12233e2bc5dc.gz --- diff --git a/lib/facebookaction.php b/lib/facebookaction.php index d5f0adbb88..87a82ba01e 100644 --- a/lib/facebookaction.php +++ b/lib/facebookaction.php @@ -88,17 +88,21 @@ class FacebookAction extends Action { function show_header($selected ='Home') { - $header = ''; - # $header .=''; - $header .= ''; - - $header .= - '' - .'' - .'' - .'' - .''; - $header .= '
'; + # Add a timestamp to the CSS file so Facebook cache wont ignore our changes + $ts = filemtime(theme_file('facebookapp.css')); + $cssurl = theme_path('facebookapp.css') . "?ts=$ts"; + + $header = ''; + # $header .=''; + $header .= ''; + + $header .= + '' + .'' + .'' + .'' + .''; + $header .= '
'; echo $header;