diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-08-01 10:35:15 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-08-01 10:35:15 -0700 |
commit | 3b187d7fe9acbe46e38ae824b6374dd3bfd0cfb0 (patch) | |
tree | 81af4ec2993f740fb632c9f5ea4572bb2d1efa23 /modules/gallery/controllers/admin.php | |
parent | 563afbe6ddf4b4debea87a0cb0b8758c8826f80c (diff) | |
parent | bf7115cf5a732cea2d498971ec94d2ade3b2fcdd (diff) |
Merge branch 'dialog'
Diffstat (limited to 'modules/gallery/controllers/admin.php')
-rw-r--r-- | modules/gallery/controllers/admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/controllers/admin.php b/modules/gallery/controllers/admin.php index eacacb28..8fc5432d 100644 --- a/modules/gallery/controllers/admin.php +++ b/modules/gallery/controllers/admin.php @@ -78,7 +78,7 @@ class Admin_Controller extends Controller { $result->location = url::abs_site(""); } - print json_encode($result); + json::reply($result); } private static function _prompt_for_reauth($controller_name, $args) { @@ -86,7 +86,8 @@ 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)); } - + // Save the is_ajax value as we lose it, if set, when we redirect + Session::instance()->set("is_ajax_request", request::is_ajax()); url::redirect("reauthenticate"); } } |