Skip to content

Commit

Permalink
feature 2626: explicit error message for PNG files + info message whe…
Browse files Browse the repository at this point in the history
…n settings saved

git-svn-id: http://piwigo.org/svn/trunk@14549 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Apr 30, 2012
1 parent c108e2b commit 2f1ebdc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion admin/include/configuration_watermark_process.inc.php
Expand Up @@ -35,7 +35,10 @@
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
{
Expand Down Expand Up @@ -187,6 +190,11 @@
{
clear_derivative_cache($changed_types);
}

array_push(
$page['infos'],
l10n('Your configuration settings are saved')
);
}
else
{
Expand Down

0 comments on commit 2f1ebdc

Please sign in to comment.