mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12262] Do not use getExtension()
The method is php 5.3.6+ only. PHPBB3-12262
This commit is contained in:
parent
8aa22550b9
commit
2071abda1f
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ function get_file_list($dir, $path = '')
|
||||||
$files[] = $file_info->getFilename() . '/' . $file;
|
$files[] = $file_info->getFilename() . '/' . $file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ($file_info->getExtension() == 'php')
|
else if (substr($file_info->getFilename(), -4) == '.php')
|
||||||
{
|
{
|
||||||
$files[] = $file_info->getFilename();
|
$files[] = $file_info->getFilename();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue