1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-16 20:39:49 +02:00

[ticket/15905] Resolve conflicts

PHPBB3-15905
This commit is contained in:
mrgoldy 2018-12-09 23:58:34 +01:00 committed by Marc Alexander
parent 7989f3f71f
commit eee00652e7
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -95,6 +95,7 @@ class extension extends \Twig_Extension
return array( return array(
new \Twig_SimpleFunction('lang', array($this, 'lang')), new \Twig_SimpleFunction('lang', array($this, 'lang')),
new \Twig_SimpleFunction('lang_defined', array($this, 'lang_defined')), new \Twig_SimpleFunction('lang_defined', array($this, 'lang_defined')),
new \Twig_SimpleFunction('get_class', 'get_class'),
new \Twig_SimpleFunction('auth', array($this, 'get_auth')), new \Twig_SimpleFunction('auth', array($this, 'get_auth')),
new \Twig_SimpleFunction('auth_global', array($this, 'get_auth_global')), new \Twig_SimpleFunction('auth_global', array($this, 'get_auth_global')),
); );
@ -196,10 +197,10 @@ class extension extends \Twig_Extension
} }
/** /**
* Check if a language variable exists * Check if a language variable exists
* *
* @return bool * @return bool
*/ */
public function lang_defined($key) public function lang_defined($key)
{ {
return call_user_func_array([$this->language, 'is_set'], [$key]); return call_user_func_array([$this->language, 'is_set'], [$key]);