From: <vb...@us...> - 2002-10-03 06:01:28
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv24956a/core Modified Files: config_api.php config_defaults_inc.php Log Message: - 0000071: Default e-mail for logged in users. - Fixed error handling in config_api.php (still to be enhanced). Index: config_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_api.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- config_api.php 14 Sep 2002 06:22:03 -0000 1.3 +++ config_api.php 3 Oct 2002 06:01:26 -0000 1.4 @@ -33,8 +33,10 @@ # unless we were allowing for the option not to exist by passing # a default, trigger a NOTICE if ( null == $p_default ) { - error_parameters($p_option); - trigger_error( ERROR_CONFIG_OPT_NOT_FOUND, NOTICE ); + #error_parameters($p_option); + #trigger_error( ERROR_CONFIG_OPT_NOT_FOUND, NOTICE ); + echo "Config option '$p_option' not found."; + exit; } return $p_default; } @@ -56,7 +58,9 @@ # If the config option does not exist, an ERROR is triggered function config_set( $p_option, $p_value ) { if ( ! isset( $GLOBALS['g_'.$p_option] ) ) { - trigger_error( ERROR_CONFIG_OPT_NOT_FOUND, ERROR ); + echo "Config option '$p_option' not found."; + exit; + #trigger_error( ERROR_CONFIG_OPT_NOT_FOUND, ERROR ); } $GLOBALS['g_'.$p_option] = $p_value; Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_defaults_inc.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- config_defaults_inc.php 1 Oct 2002 00:17:56 -0000 1.10 +++ config_defaults_inc.php 3 Oct 2002 06:01:26 -0000 1.11 @@ -118,6 +118,9 @@ $g_auto_index_pages = ON; + # automatically sets the e-mail field when logged in users are submitting notes. + $g_auto_set_email = ON; + ######################## # MODERATION SETTINGS ######################## |