summaryrefslogtreecommitdiff
path: root/lib/facebookaction.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2008-12-08 00:18:59 -0500
committerZach Copley <zach@controlyourself.ca>2008-12-08 00:18:59 -0500
commit3f8e60a8fc00b6aca924df077e7e353815dc69fd (patch)
treed85e6f6677e331bcc7099c996a256757dbfeec94 /lib/facebookaction.php
parent1a8869424b9640a1d6a689e7882f04c757f78b38 (diff)
trac750 add timestamp to CSS file to keep Facebook's caching from ignoring our changes
darcs-hash:20081208051859-7b5ce-5d777044f81edd562a4fe825cfcc12233e2bc5dc.gz
Diffstat (limited to 'lib/facebookaction.php')
-rw-r--r--lib/facebookaction.php26
1 files changed, 15 insertions, 11 deletions
diff --git a/lib/facebookaction.php b/lib/facebookaction.php
index d5f0adbb8..87a82ba01 100644
--- a/lib/facebookaction.php
+++ b/lib/facebookaction.php
@@ -88,17 +88,21 @@ class FacebookAction extends Action {
function show_header($selected ='Home') {
- $header = '<link rel="stylesheet" type="text/css" href="'. theme_path('facebookapp.css') . '" />';
- # $header .='<script src="" ></script>';
- $header .= '<fb:dashboard/>';
-
- $header .=
- '<fb:tabs>'
- .'<fb:tab-item title="Home" href="index.php" selected="' . ($selected == 'Home') .'" />'
- .'<fb:tab-item title="Invite Friends" href="invite.php" selected="' . ($selected == 'Invite') . '" />'
- .'<fb:tab-item title="Settings" href="settings.php" selected="' . ($selected == 'Settings') . '" />'
- .'</fb:tabs>';
- $header .= '<div id="main_body">';
+ # 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 = '<link rel="stylesheet" type="text/css" href="'. $cssurl . '" />';
+ # $header .='<script src="" ></script>';
+ $header .= '<fb:dashboard/>';
+
+ $header .=
+ '<fb:tabs>'
+ .'<fb:tab-item title="Home" href="index.php" selected="' . ($selected == 'Home') .'" />'
+ .'<fb:tab-item title="Invite Friends" href="invite.php" selected="' . ($selected == 'Invite') . '" />'
+ .'<fb:tab-item title="Settings" href="settings.php" selected="' . ($selected == 'Settings') . '" />'
+ .'</fb:tabs>';
+ $header .= '<div id="main_body">';
echo $header;