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 --- views/default/input/checkboxes.php | 3 ++- views/default/settings/system.php | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'views/default') diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php index 3addef0f6..1a10b8a62 100644 --- a/views/default/input/checkboxes.php +++ b/views/default/input/checkboxes.php @@ -19,7 +19,8 @@ */ foreach($vars['options'] as $option) { - if (!in_array($option,$vars['value'])) { + //if (!in_array($option,$vars['value'])) { + if ($option != $vars['value']) { $selected = ""; } else { $selected = "checked = \"checked\""; diff --git a/views/default/settings/system.php b/views/default/settings/system.php index ba3e614ee..c956da0d4 100644 --- a/views/default/settings/system.php +++ b/views/default/settings/system.php @@ -41,7 +41,13 @@ } -?> +?> +

+
+ array(elgg_echo('debug:label')), 'internalname' => 'debug', 'value' => ($vars['config']->debug ? elgg_echo('debug:label') : "") )); + ?> +

" /> -- cgit v1.2.3