mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
Renaming class.LSformRule_alphanumeric.php parameter with_accents to withAccents
This commit is contained in:
parent
56f6b34d1f
commit
e68ddb6826
2 changed files with 2 additions and 2 deletions
|
@ -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.'
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue