diff options
author | ahajdukewycz@mozilla.com <ahajdukewycz@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2007-03-28 06:01:12 (GMT) |
---|---|---|
committer | ahajdukewycz@mozilla.com <ahajdukewycz@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2007-03-28 06:01:12 (GMT) |
commit | 9819495b1d900aba9c4cf0074fb14b2c94af14c1 (patch) | |
tree | 22dd9999bbded957ad568169436c6f455c6b2126 /site/app/app_controller.php | |
parent | 82cf68b0fdcce336e9bcb76604078b15a8b3fd64 (diff) |
adding much more detailed sandbox error messages, fixes bug 374654
git-svn-id: http://svn.mozilla.org/addons/trunk@2994 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r-- | site/app/app_controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php index 0fd8d7f..69d0c9b 100644 --- a/site/app/app_controller.php +++ b/site/app/app_controller.php @@ -92,7 +92,8 @@ class AppController extends Controller if (isset($this->namedArgs['status']) && $this->namedArgs['status'] == STATUS_SANDBOX) { if (!$this->Session->check('User')) { - $this->redirect('/users/login'); + $target_url = str_replace(LANG . '/' . APP_SHORTNAME . '/','',$this->params['url']['url']); + $this->redirect('/users/login?to=' . urlencode($target_url) . "&m=2"); return; } if ($this->sandboxAccess) |