[ticket/15351] Fix missing global usage

PHPBB3-15351
This commit is contained in:
Máté Bartus 2017-09-09 12:37:52 +02:00 committed by Marc Alexander
parent 1b9507d93d
commit 75d957e9e1
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -99,8 +99,8 @@ class session
else
{
// current directory within the phpBB root (for example: adm)
$root_dirs = explode('/', str_replace('\\', '/', $phpbb_filesystem->realpath($root_path)));
$page_dirs = explode('/', str_replace('\\', '/', $phpbb_filesystem->realpath('./')));
$root_dirs = explode('/', str_replace('\\', '/', filesystem_helper::realpath($root_path)));
$page_dirs = explode('/', str_replace('\\', '/', filesystem_helper::realpath('./')));
}
$intersection = array_intersect_assoc($root_dirs, $page_dirs);