mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
Likely fix for bug #482308
git-svn-id: file:///svn/phpbb/trunk@1388 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
143823685e
commit
2cc2ae1eac
1 changed files with 4 additions and 2 deletions
|
@ -72,11 +72,13 @@ while($file = @readdir($dir))
|
||||||
{
|
{
|
||||||
if( !@is_dir($phpbb_root_path . $board_config['smilies_path'] . '/' . $file) )
|
if( !@is_dir($phpbb_root_path . $board_config['smilies_path'] . '/' . $file) )
|
||||||
{
|
{
|
||||||
if( !is_null(@getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file)) )
|
$img_size = @getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file);
|
||||||
|
|
||||||
|
if( $img_size[0] && $img_size[1] )
|
||||||
{
|
{
|
||||||
$smiley_images[] = $file;
|
$smiley_images[] = $file;
|
||||||
}
|
}
|
||||||
elseif(eregi('.pak$', $file) )
|
else if( eregi('.pak$', $file) )
|
||||||
{
|
{
|
||||||
$smiley_paks[] = $file;
|
$smiley_paks[] = $file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue