1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 15:27:42 +02:00

[ticket/12262] Do not use getExtension()

The method is php 5.3.6+ only.

PHPBB3-12262
This commit is contained in:
Joas Schilling
2014-03-13 11:43:24 +01:00
parent 8aa22550b9
commit 2071abda1f

View File

@@ -289,7 +289,7 @@ function get_file_list($dir, $path = '')
$files[] = $file_info->getFilename() . '/' . $file;
}
}
else if ($file_info->getExtension() == 'php')
else if (substr($file_info->getFilename(), -4) == '.php')
{
$files[] = $file_info->getFilename();
}