mirror of
https://github.com/typemill/typemill.git
synced 2025-07-30 19:00:32 +02:00
Version 1.1.1 Theme and Plugin Optimizations
This commit is contained in:
@@ -63,7 +63,6 @@ class Field
|
||||
'id',
|
||||
'autocomplete',
|
||||
'placeholder',
|
||||
'value',
|
||||
'size',
|
||||
'rows',
|
||||
'cols',
|
||||
@@ -208,7 +207,7 @@ class Field
|
||||
{
|
||||
foreach($fieldConfigs as $key => $value)
|
||||
{
|
||||
if(is_string($key) && array_key_exists($key, $this->attrValues))
|
||||
if(is_string($key) && in_array($key, $this->attrValues))
|
||||
{
|
||||
$this->attributeValues[$key] = $value;
|
||||
}
|
||||
|
@@ -202,7 +202,7 @@ class Validation
|
||||
break;
|
||||
case "text":
|
||||
$v->rule('lengthMax', $fieldName, 200);
|
||||
$v->rule('regex', $fieldName, '/^[\pL0-9_ \-]*$/u');
|
||||
$v->rule('regex', $fieldName, '/^[\pL0-9_ \-\.\?\!]*$/u');
|
||||
break;
|
||||
case "textarea":
|
||||
$v->rule('lengthMax', $fieldName, 1000);
|
||||
|
Reference in New Issue
Block a user