summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/controllers/combined.php4
-rw-r--r--modules/gallery/helpers/item.php3
-rw-r--r--modules/organize/views/organize_frame.html.php12
3 files changed, 13 insertions, 6 deletions
diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php
index ef640bd9..5c192b60 100644
--- a/modules/gallery/controllers/combined.php
+++ b/modules/gallery/controllers/combined.php
@@ -67,6 +67,7 @@ class Combined_Controller extends Controller {
if ($use_gzip && $content = $cache->get("{$key}_gz")) {
header("Content-Encoding: gzip");
+ header("Vary: Accept-Encoding");
} else {
// Fall back to non-gzipped if we have to
$content = $cache->get($key);
@@ -83,8 +84,9 @@ class Combined_Controller extends Controller {
}
header("Expires: Tue, 19 Jan 2038 00:00:00 GMT");
header("Cache-Control: max-age=2678400");
- header('Pragma: public');
+ header("Pragma: public");
header("Last-Modified: " . gmdate("D, d M Y H:i:s T", time()));
+ header("Content-Length: " . strlen($content));
Kohana::close_buffers(false);
print $content;
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php
index 0bb45e49..a0654a88 100644
--- a/modules/gallery/helpers/item.php
+++ b/modules/gallery/helpers/item.php
@@ -418,6 +418,9 @@ class item_Core {
$args = Cache::instance()->get("display_context_" . $sid = Session::instance()->id());
$callback = $args[0];
$args[0] = $item;
+ if (!$callback) {
+ $callback = "Albums_Controller::get_display_context";
+ }
return call_user_func_array($callback, $args);
}
} \ No newline at end of file
diff --git a/modules/organize/views/organize_frame.html.php b/modules/organize/views/organize_frame.html.php
index 47828944..20a1a6da 100644
--- a/modules/organize/views/organize_frame.html.php
+++ b/modules/organize/views/organize_frame.html.php
@@ -129,12 +129,14 @@
var get_id_from_node = function(node) {
var id = node.getAttribute("rel");
- if (!id) {
- // IE9 has a bug which causes it to be unable to read the "rel" attr
- // so hack it by extracting the id the CSS class id. This is fragile.
- // ref: https://sourceforge.net/apps/trac/gallery/ticket/1790
- return node.getAttribute("id").replace("thumb-", "");
+ if (id) {
+ return id;
}
+
+ // IE9 has a bug which causes it to be unable to read the "rel" attr
+ // so hack it by extracting the id the CSS class id. This is fragile.
+ // ref: https://sourceforge.net/apps/trac/gallery/ticket/1790
+ return node.getAttribute("id").replace("thumb-", "");
}
/*