mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-01 02:52:50 +02:00
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
This commit is contained in:
@@ -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.']';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user