aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/node/includephp.php
diff options
context:
space:
mode:
authorFrançois-Xavier de Guillebon <fdn2@3ds.com>2018-01-16 12:46:48 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 21:30:12 +0200
commit40e61e4d1ec3da2ea48efda401b0044f2aff6071 (patch)
treeca1f7990ca15f09d0eb6c76ba60b2551304e94ec /phpBB/phpbb/template/twig/node/includephp.php
parentff35f65064bebd44837802765937227ab0f59b37 (diff)
downloadforums-40e61e4d1ec3da2ea48efda401b0044f2aff6071.tar
forums-40e61e4d1ec3da2ea48efda401b0044f2aff6071.tar.gz
forums-40e61e4d1ec3da2ea48efda401b0044f2aff6071.tar.bz2
forums-40e61e4d1ec3da2ea48efda401b0044f2aff6071.tar.xz
forums-40e61e4d1ec3da2ea48efda401b0044f2aff6071.zip
[ticket/15508] Remove call to getEnvironment() from parser
PHPBB3-15508
Diffstat (limited to 'phpBB/phpbb/template/twig/node/includephp.php')
-rw-r--r--phpBB/phpbb/template/twig/node/includephp.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/template/twig/node/includephp.php b/phpBB/phpbb/template/twig/node/includephp.php
index 76182c2f84..0cf95abe99 100644
--- a/phpBB/phpbb/template/twig/node/includephp.php
+++ b/phpBB/phpbb/template/twig/node/includephp.php
@@ -63,15 +63,15 @@ class includephp extends \Twig_Node
// Absolute path specified
->write("require(\$location);\n")
->outdent()
- ->write("} else if (file_exists(\$this->getEnvironment()->get_phpbb_root_path() . \$location)) {\n")
+ ->write("} else if (file_exists(\$this->env->get_phpbb_root_path() . \$location)) {\n")
->indent()
// PHP file relative to phpbb_root_path
- ->write("require(\$this->getEnvironment()->get_phpbb_root_path() . \$location);\n")
+ ->write("require(\$this->env->get_phpbb_root_path() . \$location);\n")
->outdent()
->write("} else {\n")
->indent()
// Local path (behaves like INCLUDE)
- ->write("require(\$this->getEnvironment()->getLoader()->getCacheKey(\$location));\n")
+ ->write("require(\$this->env->getLoader()->getCacheKey(\$location));\n")
->outdent()
->write("}\n")
;