diff options
author | MateBartus <mate.bartus@gmail.com> | 2015-04-29 01:00:13 +0200 |
---|---|---|
committer | MateBartus <mate.bartus@gmail.com> | 2015-05-02 13:37:13 +0200 |
commit | 9a99c9e4b10eba614517e335527c332761b473a4 (patch) | |
tree | daff50a159fe60732bd62a983a23da6a891f8c22 /phpBB/phpbb/template/twig/extension.php | |
parent | 9f1f6f96ceaf0870dabd0cf68c40292682c04aa2 (diff) | |
download | forums-9a99c9e4b10eba614517e335527c332761b473a4.tar forums-9a99c9e4b10eba614517e335527c332761b473a4.tar.gz forums-9a99c9e4b10eba614517e335527c332761b473a4.tar.bz2 forums-9a99c9e4b10eba614517e335527c332761b473a4.tar.xz forums-9a99c9e4b10eba614517e335527c332761b473a4.zip |
[ticket/13762] Replace user service with lang in twig extension
PHPBB3-13762
Diffstat (limited to 'phpBB/phpbb/template/twig/extension.php')
-rw-r--r-- | phpBB/phpbb/template/twig/extension.php | 12 |
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); } } |