1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10084] Add smilie/icon errors out when file is missing

PHPBB3-10084
This commit is contained in:
Joas Schilling
2011-04-07 20:36:11 +02:00
parent df622a1fab
commit 851bb9fcd8
2 changed files with 6 additions and 1 deletions

View File

@@ -394,6 +394,10 @@ class acp_icons
{
// skip images where add wasn't checked
}
else if (!file_exists($phpbb_root_path . $img_path . '/' . $image))
{
$errors[$image] = 'SMILIE_NO_FILE';
}
else
{
if ($image_width[$image] == 0 || $image_height[$image] == 0)