Skip to content

Commit

Permalink
Kohana::$user_agent moved to the request helper and is protected, so
Browse files Browse the repository at this point in the history
instead set the user agent into $_SERVER.
  • Loading branch information
bharat committed Nov 27, 2009
1 parent a3d904b commit 3dd8bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/hooks/init_gallery.php
Expand Up @@ -42,5 +42,5 @@
}

if ($user_agent = $input->post("user_agent", $input->get("user_agent"))) {
Kohana::$user_agent = $user_agent;
$_SERVER["HTTP_USER_AGENT"] = $user_agent;
}

0 comments on commit 3dd8bf2

Please sign in to comment.