Merge pull request #4939 from CHItA/ticket/15351

[ticket/15351] Fix missing global usage

* github.com:phpbb/phpbb:
  [ticket/15351] Fix missing global usage
This commit is contained in:
Tristan Darricau 2017-09-09 13:19:56 +02:00
commit 870ced94eb
No known key found for this signature in database
GPG key ID: 817043C2E29DB881

View file

@ -101,8 +101,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);