summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-17 09:57:38 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-17 09:57:38 -0700
commit359235182ebb14c75b495a889a2298d1e0130d77 (patch)
tree23ae35cc3620fa66258905336e136fe7850aadff /modules
parenta03e3d1dc1b59e45e5b0dbf4cf23eed91d545c25 (diff)
Add a cache-buster to the SWF url so that it'll refresh in the browser
every time the SWF file changes.
Diffstat (limited to 'modules')
-rw-r--r--modules/organize/controllers/organize.php2
-rw-r--r--modules/organize/views/organize_dialog.html.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index d688a76d..488f1eb1 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -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;
}
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php
index 8113a1af..d68534cf 100644
--- a/modules/organize/views/organize_dialog.html.php
+++ b/modules/organize/views/organize_dialog.html.php
@@ -121,7 +121,7 @@
attributes.id = "Gallery3WebClient";
attributes.name = "Gallery3WebClient";
attributes.align = "middle";
- swfobject.embedSWF("<?= url::file("modules/organize/lib/Gallery3WebClient.swf") ?>",
+ swfobject.embedSWF("<?= $swf_url ?>",
"flashContent", size.width() - 100, size.height() - 135,
swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
</script>