aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/site/update_basic.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 11:10:16 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 11:10:16 +0000
commit09fba458f79b8b1b1940405911915feade1989bf (patch)
treebd8d4de9adea9fe1300939a1e823c1e30c141976 /actions/admin/site/update_basic.php
parentd5a0e61b33283eb5e0f042cfd29ab6f8bbd5ae02 (diff)
downloadelgg-09fba458f79b8b1b1940405911915feade1989bf.tar.gz
elgg-09fba458f79b8b1b1940405911915feade1989bf.tar.bz2
Fixes #17 - Debug mode toggle. Introduced unset_config() which is also called automatically by set_config(). Also modified the view input/checkboxes to set values on the checkbox.
git-svn-id: https://code.elgg.org/elgg/trunk@961 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin/site/update_basic.php')
-rw-r--r--actions/admin/site/update_basic.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index 25500067a..830df9ad1 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -29,7 +29,14 @@
datalist_set('path',get_input('path'));
datalist_set('dataroot',get_input('dataroot'));
- set_config('language', get_input('language'), $site->getGUID());
+ set_config('language', get_input('language'), $site->getGUID());
+
+ $debug = get_input('debug');
+ if ($debug)
+ set_config('debug', 1, $site->getGUID());
+ else
+ unset_config('debug', $site->getGUID());
+
system_message(elgg_echo("admin:configuration:success"));