From e68ddb6826d1a6d9836b50a55d44c626a14a99c9 Mon Sep 17 00:00:00 2001 From: Pierre Arnaud Date: Thu, 14 Aug 2014 16:06:43 +0200 Subject: [PATCH] Renaming class.LSformRule_alphanumeric.php parameter with_accents to withAccents --- public_html/conf/LSobjects/config.LSobjects.LSpeople.php | 2 +- public_html/includes/class/class.LSformRule_alphanumeric.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/conf/LSobjects/config.LSobjects.LSpeople.php b/public_html/conf/LSobjects/config.LSobjects.LSpeople.php index 794aac43..cf55d8ae 100644 --- a/public_html/conf/LSobjects/config.LSobjects.LSpeople.php +++ b/public_html/conf/LSobjects/config.LSobjects.LSpeople.php @@ -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.' ), ), diff --git a/public_html/includes/class/class.LSformRule_alphanumeric.php b/public_html/includes/class/class.LSformRule_alphanumeric.php index efd0d325..ef384ad6 100644 --- a/public_html/includes/class/class.LSformRule_alphanumeric.php +++ b/public_html/includes/class/class.LSformRule_alphanumeric.php @@ -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 {