1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-10 16:14:20 +02:00

Version 1.2.11: Table editor

This commit is contained in:
Sebastian
2019-02-17 11:17:43 +01:00
parent 8060eba08c
commit f40622ed2c
36 changed files with 534 additions and 128 deletions

View File

@@ -13,7 +13,7 @@ class Fields
# formtype are backend forms or public forms, only relevant for plugins for now
$formType = $formType ? $formType : 'forms';
# iterate through all fields of the objectSetting (theme or plugin)
foreach($objectSettings[$formType]['fields'] as $fieldName => $fieldConfigurations)
{

View File

@@ -285,7 +285,7 @@ class Validation
$v->rule('required', ['folder_id', 'item_name', 'type', 'url']);
$v->rule('regex', 'folder_id', '/^[0-9.]+$/i');
$v->rule('noSpecialChars', 'item_name');
$v->rule('lengthBetween', 'item_name', 1, 20);
$v->rule('lengthBetween', 'item_name', 1, 40);
$v->rule('in', 'type', ['file', 'folder']);
if($v->validate())

View File

@@ -24,7 +24,7 @@ class Write
}
else
{
throw new \Exception("The folder '{$folder}' is missing and we could not create it. Please create the folder manually on your server.");
# throw new \Exception("The folder '{$folder}' is missing and we could not create it. Please create the folder manually on your server.");
return false;
}
}
@@ -35,7 +35,7 @@ class Write
}
else
{
throw new \Exception("Please make the folder '{$folder}' writable.");
# throw new \Exception("Please make the folder '{$folder}' writable.");
return false;
}
return true;