1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 04:23:38 +01:00

[ticket/14440] Add comments

PHPBB3-14440
This commit is contained in:
Tristan Darricau 2016-02-11 22:18:09 +01:00
parent 20d85433fc
commit 5557760ecc

View File

@ -102,6 +102,7 @@ class path_helper
{ {
$web_root_path = $this->get_web_root_path(); $web_root_path = $this->get_web_root_path();
// Removes the web root path if it is already present
if (strpos($path, $web_root_path) === 0) if (strpos($path, $web_root_path) === 0)
{ {
$path = $this->phpbb_root_path . substr($path, strlen($web_root_path)); $path = $this->phpbb_root_path . substr($path, strlen($web_root_path));