From f820b6edcd3b2b22d64aef71b2750253d2bcafcd Mon Sep 17 00:00:00 2001 From: nickw Date: Mon, 19 Oct 2009 17:15:35 +0000 Subject: Adding debug options to admin site settings. Debugging errors and warnings to screen. If notice level is enabled, output is sent to system log file. git-svn-id: http://code.elgg.org/elgg/trunk@3563 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/failsafe/settings/system.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'views/failsafe/settings/system.php') diff --git a/views/failsafe/settings/system.php b/views/failsafe/settings/system.php index aa06dd44c..dfc7ecc41 100644 --- a/views/failsafe/settings/system.php +++ b/views/failsafe/settings/system.php @@ -39,7 +39,10 @@ $form_body .= "

" . elgg_echo('installation:language') . elgg_view("input/pull $form_body .= "

" . elgg_echo('installation:sitepermissions') . elgg_view('input/access', array('internalname' => 'default_access','value' => ACCESS_LOGGED_IN)) . "

"; -$form_body .= "

" . elgg_echo('installation:debug') . "
" .elgg_view("input/checkboxes", array('options' => array(elgg_echo('installation:debug:label')), 'internalname' => 'debug', 'value' => ($vars['config']->debug ? elgg_echo('installation:debug:label') : "") )) . "

"; +$debug_options = array('0' => elgg_echo('installation:debug:none'), 'ERROR' => elgg_echo('installation:debug:error'), 'WARNING' => elgg_echo('installation:debug:warning'), 'NOTICE' => elgg_echo('installation:debug:notice')); +$form_body .= "

" . elgg_echo('installation:debug'); +$form_body .= elgg_view('input/pulldown', array('options_values' => $debug_options, 'internalname' => 'debug', 'value' => $vars['config']->debug)); +$form_body .= '

'; $form_body .= "

" . elgg_echo('installation:httpslogin') . "
" .elgg_view("input/checkboxes", array('options' => array(elgg_echo('installation:httpslogin:label')), 'internalname' => 'https_login', 'value' => ($vars['config']->https_login ? elgg_echo('installation:httpslogin:label') : "") )) . "

"; -- cgit v1.2.3