summaryrefslogtreecommitdiff
path: root/modules/gallery/hooks
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-26 20:24:16 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-26 20:24:16 -0800
commit3dd8bf245ea16fe1b9f1c27c4ad42d11d3cde1ee (patch)
tree596dd225644f64a4c8a4257026f6c5c435dcab3b /modules/gallery/hooks
parenta3d904bcbab7cb153c2b617fc4389175ed00a4fc (diff)
Kohana::$user_agent moved to the request helper and is protected, so
instead set the user agent into $_SERVER.
Diffstat (limited to 'modules/gallery/hooks')
-rw-r--r--modules/gallery/hooks/init_gallery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/hooks/init_gallery.php b/modules/gallery/hooks/init_gallery.php
index 4ce9bab4..c7355260 100644
--- a/modules/gallery/hooks/init_gallery.php
+++ b/modules/gallery/hooks/init_gallery.php
@@ -42,5 +42,5 @@ if ($g3sid = $input->post("g3sid", $input->get("g3sid"))) {
}
if ($user_agent = $input->post("user_agent", $input->get("user_agent"))) {
- Kohana::$user_agent = $user_agent;
+ $_SERVER["HTTP_USER_AGENT"] = $user_agent;
}