Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authorahajdukewycz@mozilla.com <ahajdukewycz@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-01-31 19:33:22 (GMT)
committer ahajdukewycz@mozilla.com <ahajdukewycz@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-01-31 19:33:22 (GMT)
commit69abb1c81800dbe73521229f9b249bca5ed5dab4 (patch)
treec37ff66e0834bb6110597da92e8669a46f53d0e5 /site/app/app_controller.php
parent347d93f52c5169774f80173f43c9b5d46cde8127 (diff)
sandbox searching enabling, miscellaneous sandbox link fixes, removed recommended page from sandbox menu
git-svn-id: http://svn.mozilla.org/addons/trunk@1708 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index e516aeb..88a690a 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -51,7 +51,6 @@ class AppController extends Controller
*/
function _checkSandbox() {
- $this->Amo->clean($this->namedArgs);
$this->status = STATUS_PUBLIC;
$this->sandboxAccess = false;
@@ -62,7 +61,7 @@ class AppController extends Controller
$this->sandboxAccess = true;
}
}
-
+
if (isset($this->namedArgs['status']) && $this->namedArgs['status'] == STATUS_SANDBOX) {
if (!$this->Session->check('User')) {
$this->redirect('/users/login');
@@ -154,7 +153,10 @@ class AppController extends Controller
}
}
}
-
+ //check for sandbox status in the url
+ if (!empty($this->params['url']['status']) && empty($this->namedArgs['status']))
+ $this->namedArgs['status'] = $this->params['url']['status'];
+
$this->Amo->clean($this->namedArgs);
return true;