Renaming class.LSformRule_alphanumeric.php parameter with_accents to withAccents

This commit is contained in:
Pierre Arnaud 2014-08-14 16:06:43 +02:00
parent 56f6b34d1f
commit e68ddb6826
2 changed files with 2 additions and 2 deletions

View file

@ -235,7 +235,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'default_value' => 'toto',
'check_data' => array (
'alphanumeric' => array(
'params' => array('with_accents' => true),
'params' => array('withAccents' => true),
'msg' => 'The first name must contain alphanumeric values only.'
),
),

View file

@ -39,7 +39,7 @@ class LSformRule_alphanumeric extends LSformRule {
function validate ($value,$options=array(),$formElement) {
if (isset($options['params']['with_accents']) && $options['params']['with_accents'] == true){
if (isset($options['params']['withAccents']) && $options['params']['withAccents'] == true){
$regex = '/(*UTF8)^[0-9\p{L}]+$/';
}
else {