diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/input/checkboxes.php | 3 | ||||
-rw-r--r-- | views/default/settings/system.php | 8 |
2 files changed, 9 insertions, 2 deletions
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 @@ }
-?>
+?> + <p> + <?php echo elgg_echo('debug'); ?><br /> + <?php + echo elgg_view("input/checkboxes", array('options' => array(elgg_echo('debug:label')), 'internalname' => 'debug', 'value' => ($vars['config']->debug ? elgg_echo('debug:label') : "") )); + ?> + </p>
<p>
<input type="hidden" name="settings" value="go" />
<input type="submit" value="<?php echo elgg_echo("save"); ?>" />
|