From 09fba458f79b8b1b1940405911915feade1989bf Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 18 Jun 2008 11:10:16 +0000 Subject: 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 --- actions/systemsettings/install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actions/systemsettings') diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php index 06a40e167..30f501f36 100644 --- a/actions/systemsettings/install.php +++ b/actions/systemsettings/install.php @@ -33,7 +33,13 @@ datalist_set('default_site',$site->getGUID()); - 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("installation:configuration:success")); -- cgit v1.2.3