1
0
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:
Sebastian
2018-02-25 17:29:38 +01:00
parent 5deaf6f7ca
commit c43c633cb4
787 changed files with 58749 additions and 242 deletions

View File

@@ -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;
}

View File

@@ -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);