aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-02 22:51:43 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-02 22:51:43 +0200
commit85967425795773b7cb4116bb05adef810fb8bc07 (patch)
treedaff50a159fe60732bd62a983a23da6a891f8c22 /phpBB/phpbb/template
parent2f480be02d25421fa4c372c103604f24d4adf0ab (diff)
parent9a99c9e4b10eba614517e335527c332761b473a4 (diff)
downloadforums-85967425795773b7cb4116bb05adef810fb8bc07.tar
forums-85967425795773b7cb4116bb05adef810fb8bc07.tar.gz
forums-85967425795773b7cb4116bb05adef810fb8bc07.tar.bz2
forums-85967425795773b7cb4116bb05adef810fb8bc07.tar.xz
forums-85967425795773b7cb4116bb05adef810fb8bc07.zip
Merge pull request #3535 from MateBartus/ticket/13762
[ticket/13762] Moving language related functionality into a service
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r--phpBB/phpbb/template/twig/extension.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/phpbb/template/twig/extension.php b/phpBB/phpbb/template/twig/extension.php
index 14d1258c09..92f87a0331 100644
--- a/phpBB/phpbb/template/twig/extension.php
+++ b/phpBB/phpbb/template/twig/extension.php
@@ -18,20 +18,20 @@ class extension extends \Twig_Extension
/** @var \phpbb\template\context */
protected $context;
- /** @var \phpbb\user */
- protected $user;
+ /** @var \phpbb\language\language */
+ protected $language;
/**
* Constructor
*
* @param \phpbb\template\context $context
- * @param \phpbb\user $user
+ * @param \phpbb\language\language $language
* @return \phpbb\template\twig\extension
*/
- public function __construct(\phpbb\template\context $context, $user)
+ public function __construct(\phpbb\template\context $context, $language)
{
$this->context = $context;
- $this->user = $user;
+ $this->language = $language;
}
/**
@@ -181,6 +181,6 @@ class extension extends \Twig_Extension
// LA_ is transformed into lang(\'$1\')|escape('js'), so we should not
// need to check for it
- return call_user_func_array(array($this->user, 'lang'), $args);
+ return call_user_func_array(array($this->language, 'lang'), $args);
}
}