From 3f8e60a8fc00b6aca924df077e7e353815dc69fd Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 8 Dec 2008 00:18:59 -0500 Subject: [PATCH] trac750 add timestamp to CSS file to keep Facebook's caching from ignoring our changes darcs-hash:20081208051859-7b5ce-5d777044f81edd562a4fe825cfcc12233e2bc5dc.gz --- lib/facebookaction.php | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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 .= ''; + # 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 .= ''; + + $header .= + '' + .'' + .'' + .'' + .''; + $header .= '
'; echo $header;