diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-07-05 19:17:30 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-07-05 19:17:30 -0700 |
commit | df3af7d521fa073f1dc7927003d95c45d4934fbe (patch) | |
tree | b9c16dc58c22f70c14dc0b1e01f34d23f516d2c0 /modules/gallery/controllers/admin.php | |
parent | 0977c310097c63dd25d5fec82bd9cfb5f07d12f0 (diff) | |
parent | 67223fc43d1cfd5f33d4fc007935eaadb79a112e (diff) |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/admin.php')
-rw-r--r-- | modules/gallery/controllers/admin.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/gallery/controllers/admin.php b/modules/gallery/controllers/admin.php index 8effe28f..40dd260b 100644 --- a/modules/gallery/controllers/admin.php +++ b/modules/gallery/controllers/admin.php @@ -38,8 +38,7 @@ class Admin_Controller extends Controller { return self::_reauth_check(); } if (auth::must_reauth_for_admin_area()) { - print self::_prompt_for_reauth($controller_name, $args); - return; + return self::_prompt_for_reauth($controller_name, $args); } if (request::method() == "post") { @@ -87,13 +86,7 @@ class Admin_Controller extends Controller { // Avoid anti-phishing protection by passing the url as session variable. Session::instance()->set("continue_url", url::abs_current(true)); } - - // Check that we we not in a dialog. If we are, then use an ajax response. - if (strpos(Router::$query_string, "g-in-dialog") === false) { - url::redirect("reauthenticate"); - } else { - return reauthenticate::get_authenticate_form(); - } + url::redirect("reauthenticate"); } } |