diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-05 08:58:36 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-05 08:58:36 -0700 |
| commit | 226d1f714635995722fe7927f8ec049fe3890011 (patch) | |
| tree | c7eeaf00e78b87411d75dbe997dc3dd10658b265 /modules/gallery/controllers/admin.php | |
| parent | 8493a3d36f597e183490ae880b35a3d98f50a045 (diff) | |
Revert "If the admin request originates as a dialog link, don't display the entire page when reauthenticating the administrator. Just put the form in the dialog."
This reverts commit 8493a3d36f597e183490ae880b35a3d98f50a045.
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 d9bee284..c460f58c 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") { @@ -86,13 +85,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"); } } |
