mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 03:53:15 +02:00
[ticket/10844] Make sure ext_path has no trailing slash
PHPBB3-10844
This commit is contained in:
@ -108,6 +108,11 @@ class phpbb_style_extension_path_provider extends phpbb_extension_provider imple
|
|||||||
->get_directories(true, false, true);
|
->get_directories(true, false, true);
|
||||||
foreach ($result as $ext => $ext_path)
|
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;
|
$directories[$ext][] = $ext_path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user