mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 11:10:18 +02:00
[feature/extension-manager] Don't cache the phpbb_root_path in the ext manager
Otherwise the paths are incorrect from e.g. adm/ PHPBB3-10323
This commit is contained in:
@@ -161,6 +161,8 @@ class phpbb_extension_finder
|
||||
*/
|
||||
public function directory($directory)
|
||||
{
|
||||
$directory = preg_replace('#(?:^|/)\./#', '/', $directory);
|
||||
|
||||
if (strlen($directory) > 1 && $directory[strlen($directory) - 1] === '/')
|
||||
{
|
||||
$directory = substr($directory, 0, -1);
|
||||
|
Reference in New Issue
Block a user