diff options
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/filesystem.php | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/phpBB/phpbb/filesystem.php b/phpBB/phpbb/filesystem.php index e8fd03d103..6c037b2656 100644 --- a/phpBB/phpbb/filesystem.php +++ b/phpBB/phpbb/filesystem.php @@ -26,6 +26,9 @@ class phpbb_filesystem  	/** @var string */  	protected $phpbb_root_path; +	/** @var string */ +	protected $web_root_path; +  	/**  	* Constructor  	* @@ -82,16 +85,15 @@ class phpbb_filesystem  			return $this->phpbb_root_path;  		} -		static $path; -		if (null !== $path) +		if (null !== $this->web_root_path)  		{ -			return $path; +			return $this->web_root_path;  		}  		$path_info = $symfony_request->getPathInfo();  		if ($path_info === '/')  		{ -			return $path = $this->phpbb_root_path; +			return $this->web_root_path = $this->phpbb_root_path;  		}  		$path_info = $this->clean_path($path_info); @@ -106,7 +108,7 @@ class phpbb_filesystem  			$corrections -= 1;  		} -		return $path = $this->phpbb_root_path . str_repeat('../', $corrections); +		return $this->web_root_path = $this->phpbb_root_path . str_repeat('../', $corrections);  	}  	/** | 
