diff options
| author | Chad Kieffer <ckieffer@227.1.241.10.in-addr.arpa> | 2010-06-14 14:43:14 -0400 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@227.1.241.10.in-addr.arpa> | 2010-06-14 14:43:14 -0400 |
| commit | 3c6e710aa75b309fd7ff50aa8f5c58721b17770f (patch) | |
| tree | 062b516f3fad5921e4ace326fa6b2f7f868ca87e /modules/gallery/controllers/logout.php | |
| parent | 782c1e0ae0bc597629abcd88f844d863da45901a (diff) | |
| parent | 793780daa7665f7f86994235c4263fcb63554eb8 (diff) | |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/logout.php')
| -rw-r--r-- | modules/gallery/controllers/logout.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/gallery/controllers/logout.php b/modules/gallery/controllers/logout.php index 967dad49..20fa8074 100644 --- a/modules/gallery/controllers/logout.php +++ b/modules/gallery/controllers/logout.php @@ -21,14 +21,9 @@ class Logout_Controller extends Controller { public function index() { access::verify_csrf(); auth::logout(); - if ($continue_url = Input::instance()->get("continue")) { - $item = url::get_item_from_uri($continue_url); - if (access::can("view", $item)) { - // Don't use url::redirect() because it'll call url::site() and munge the continue url. - header("Location: $continue_url"); - } else { - url::redirect(item::root()->abs_url()); - } + if ($continue_url = Input::instance()->get("continue_url")) { + url::redirect($continue_url); } + url::redirect(item::root()->abs_url()); } }
\ No newline at end of file |
