mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:01:55 +02:00
Merge branch 'develop' into ticket/11215
* develop: [ticket/11694] Do not locate assets with root path
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user