trac750 add timestamp to CSS file to keep Facebook's caching from ignoring our changes

darcs-hash:20081208051859-7b5ce-5d777044f81edd562a4fe825cfcc12233e2bc5dc.gz
This commit is contained in:
Zach Copley 2008-12-08 00:18:59 -05:00
parent 1a8869424b
commit 3f8e60a8fc

View File

@ -88,7 +88,11 @@ class FacebookAction extends Action {
function show_header($selected ='Home') {
$header = '<link rel="stylesheet" type="text/css" href="'. theme_path('facebookapp.css') . '" />';
# 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/>';