mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +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:
parent
063c620406
commit
f62d3fd486
@ -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']);
|
$dir = opendir($phpbb_root_path . $board_config['smilies_path']);
|
||||||
while($file = readdir($dir))
|
while($file = readdir($dir))
|
||||||
{
|
{
|
||||||
if($file != '.' && $file != '..')
|
if(!is_dir($phpbb_root_path . $board_config['smilies_path'] . '/' . $file))
|
||||||
{
|
{
|
||||||
$smiley_images[] = $file;
|
$smiley_images[] = $file;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user