Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2023-11-02 21:57:29 +01:00
commit fb4ea608e3
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -69,7 +69,6 @@ class environment extends \Twig\Environment
$this->phpbb_dispatcher = $phpbb_dispatcher;
$this->phpbb_root_path = $this->phpbb_path_helper->get_phpbb_root_path();
$this->web_root_path = $this->phpbb_path_helper->get_web_root_path();
$this->assets_bag = new assets_bag();
@ -132,7 +131,7 @@ class environment extends \Twig\Environment
*/
public function get_web_root_path()
{
return $this->web_root_path;
return $this->web_root_path ?? $this->web_root_path = $this->phpbb_path_helper->get_web_root_path();
}
/**