Add a cache-buster to the SWF url so that it'll refresh in the browser

every time the SWF file changes.
This commit is contained in:
Bharat Mediratta
2010-06-17 09:57:38 -07:00
parent a03e3d1dc1
commit 359235182e
2 changed files with 3 additions and 1 deletions
@@ -47,6 +47,8 @@ class Organize_Controller extends Controller {
$v->access_key = rest::get_access_key($user->id)->access_key;
$v->protocol = (empty($_SERVER["HTTPS"]) OR $_SERVER["HTTPS"] === "off") ? "http" : "https";
$v->swf_url = url::file("modules/organize/lib/Gallery3WebClient.swf?") .
filemtime(MODPATH . "organize/lib/Gallery3WebClient.swf");
print $v;
}