Skip to content

Commit

Permalink
Merge branch '3.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Nov 2, 2023
2 parents 010464c + d417851 commit fb4ea60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions phpBB/phpbb/template/twig/environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public function __construct(\phpbb\config\config $phpbb_config, \phpbb\filesyste
$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();

Expand Down Expand Up @@ -132,7 +131,7 @@ public function get_filesystem()
*/
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();
}

/**
Expand Down

0 comments on commit fb4ea60

Please sign in to comment.