mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
feature 2626: explicit error message for PNG files + info message when settings saved
git-svn-id: http://piwigo.org/svn/trunk@14549 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
c108e2b288
commit
2f1ebdc9c4
1 changed files with 9 additions and 1 deletions
|
@ -35,7 +35,10 @@ if (isset($_FILES['watermarkImage']) and !empty($_FILES['watermarkImage']['tmp_n
|
|||
list($width, $height, $type) = getimagesize($_FILES['watermarkImage']['tmp_name']);
|
||||
if (IMAGETYPE_PNG != $type)
|
||||
{
|
||||
$errors['watermarkImage'] = 'PNG';
|
||||
$errors['watermarkImage'] = sprintf(
|
||||
l10n('Allowed file types: %s.'),
|
||||
'PNG'
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -187,6 +190,11 @@ if (count($errors) == 0)
|
|||
{
|
||||
clear_derivative_cache($changed_types);
|
||||
}
|
||||
|
||||
array_push(
|
||||
$page['infos'],
|
||||
l10n('Your configuration settings are saved')
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue