Renaming class.LSformRule_alphanumeric.php parameter with_accents to withAccents
authorPierre Arnaud <parnaud@easter-eggs.com>
Thu, 14 Aug 2014 14:06:43 +0000 (16:06 +0200)
committerPierre Arnaud <parnaud@easter-eggs.com>
Thu, 14 Aug 2014 14:06:43 +0000 (16:06 +0200)
public_html/conf/LSobjects/config.LSobjects.LSpeople.php
public_html/includes/class/class.LSformRule_alphanumeric.php

index 794aac4..cf55d8a 100644 (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.'
           ),
       ),
index efd0d32..ef384ad 100644 (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 {