diff options
author | plegall <plg@piwigo.org> | 2012-04-19 14:43:30 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-04-19 14:43:30 +0000 |
commit | 796b6b3ffef5bb4798aab075ff197f8cdfd62f3d (patch) | |
tree | dc6f9e450a76ebbe27f1590ceee3bb1da012e8bf /admin/include/functions_upload.inc.php | |
parent | fed0c74a920c2c4db209d821f8b59075a2a5a80e (diff) |
feature 2606: second step on multiple size configuration screen redesign.
Configuration settings are saved on form submission.
The old screen is still available for tests.
Default resize quality set to 95 instead of 85.
git-svn-id: http://piwigo.org/svn/trunk@14221 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions_upload.inc.php')
-rw-r--r-- | admin/include/functions_upload.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php index 19482ee02..3df881a2b 100644 --- a/admin/include/functions_upload.inc.php +++ b/admin/include/functions_upload.inc.php @@ -68,7 +68,7 @@ function get_upload_form_config() return $upload_form_config; } -function save_upload_form_config($data, &$errors=array()) +function save_upload_form_config($data, &$errors=array(), &$form_errors=array()) { if (!is_array($data) or empty($data)) { @@ -130,6 +130,8 @@ function save_upload_form_config($data, &$errors=array()) $max ) ); + + $form_errors[$field] = '['.$min.' .. '.$max.']'; } } } |