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:
authorfwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-06-12 08:38:40 (GMT)
committer fwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-06-12 08:38:40 (GMT)
commitfcb864802814e89497bbf0afb87e1764c908f170 (patch)
tree11eaea5fbdc5626c7af1bce1c7b1d9d0c97a1e0b /site/app/app_controller.php
parent0cbe31a8223dc809d4bedd2e13561958c8f25a9e (diff)
keeping cake security setting from trying to set a constant multiple times
git-svn-id: http://svn.mozilla.org/addons/trunk@4446 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index b7cb49b..595c127 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -298,9 +298,10 @@ class AppController extends Controller
* the controllers that can use a more relaxed level.
*
* @param string level to set the security at, 'low' or 'high'
+ * @return void
*/
function setSecurityLevel($level) {
-
+ if (defined('CAKE_SECURITY')) return;
switch ($level) {
case 'low':