1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-23 11:35:24 +02:00

[ticket/10844] Make sure ext_path has no trailing slash

PHPBB3-10844
This commit is contained in:
Joas Schilling
2013-04-12 21:19:09 +02:00
parent 6a3d77d76e
commit bbaa3411b0

View File

@ -108,6 +108,11 @@ class phpbb_style_extension_path_provider extends phpbb_extension_provider imple
->get_directories(true, false, true);
foreach ($result as $ext => $ext_path)
{
// Make sure $ext_path has no ending slash
if (substr($ext_path, -1) === '/')
{
$ext_path = substr($ext_path, 0, -1);
}
$directories[$ext][] = $ext_path;
}
}