mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/15905] Resolve conflicts
PHPBB3-15905
This commit is contained in:
parent
7989f3f71f
commit
eee00652e7
1 changed files with 5 additions and 4 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue