1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

Fix so that it doesn't get directory names, only filenames when looking for smiley images (ie CVS)

git-svn-id: file:///svn/phpbb/trunk@939 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
the_systech 2001-08-28 19:58:01 +00:00
parent 063c620406
commit f62d3fd486

View File

@ -40,7 +40,7 @@ $mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mod
$dir = opendir($phpbb_root_path . $board_config['smilies_path']);
while($file = readdir($dir))
{
if($file != '.' && $file != '..')
if(!is_dir($phpbb_root_path . $board_config['smilies_path'] . '/' . $file))
{
$smiley_images[] = $file;
}