aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/twig/environment.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-06-24 22:37:58 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-06-24 22:37:58 -0500
commit3ca99f8122c149a66f59dbf3c9884c095db7ad3c (patch)
tree9c7d28a32673b39fb1af9dc4af1ee845f44d0fa8 /phpBB/includes/template/twig/environment.php
parent814d57d201d654ce0510ede5b43cfad6b06d372e (diff)
downloadforums-3ca99f8122c149a66f59dbf3c9884c095db7ad3c.tar
forums-3ca99f8122c149a66f59dbf3c9884c095db7ad3c.tar.gz
forums-3ca99f8122c149a66f59dbf3c9884c095db7ad3c.tar.bz2
forums-3ca99f8122c149a66f59dbf3c9884c095db7ad3c.tar.xz
forums-3ca99f8122c149a66f59dbf3c9884c095db7ad3c.zip
[feature/twig] Append assets_version to includejs tag
Some fixes for main template parser PHPBB3-11598
Diffstat (limited to 'phpBB/includes/template/twig/environment.php')
-rw-r--r--phpBB/includes/template/twig/environment.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/template/twig/environment.php b/phpBB/includes/template/twig/environment.php
index 4c7f0002ba..616321e15a 100644
--- a/phpBB/includes/template/twig/environment.php
+++ b/phpBB/includes/template/twig/environment.php
@@ -20,6 +20,9 @@ class phpbb_template_twig_environment extends Twig_Environment
/** @var array */
protected $phpbbExtensions;
+ /** @var phpbb_config */
+ protected $phpbbConfig;
+
/** @var array **/
protected $namespaceLookUpOrder = array('__main__');
@@ -63,6 +66,29 @@ class phpbb_template_twig_environment extends Twig_Environment
}
/**
+ * Get phpBB config
+ *
+ * @return phpbb_config
+ */
+ public function get_phpbb_config()
+ {
+ return $this->phpbbConfig;
+ }
+
+ /**
+ * Set phpBB config
+ *
+ * @param phpbb_config $config
+ * @return Twig_Environment
+ */
+ public function set_phpbb_config($config)
+ {
+ $this->phpbbConfig = $config;
+
+ return $this;
+ }
+
+ /**
* Get the namespace look up order
*
* @return array