mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
Merge branch 'develop' into ticket/11215
* develop: [ticket/11694] Do not locate assets with root path
This commit is contained in:
commit
9485eea098
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class phpbb_template_twig_node_includeasset extends Twig_Node
|
|||
->subcompile($this->getNode('expr'))
|
||||
->raw(";\n")
|
||||
->write("\$asset = new phpbb_template_asset(\$asset_file);\n")
|
||||
->write("if (\$asset->is_relative()) {\n")
|
||||
->write("if (substr(\$asset_file, 0, 2) !== './' && \$asset->is_relative()) {\n")
|
||||
->indent()
|
||||
->write("\$asset_path = \$asset->get_path();")
|
||||
->write("\$local_file = \$this->getEnvironment()->get_phpbb_root_path() . \$asset_path;\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue