mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #4959 from rubencm/ticket/15366
[ticket/15366] Remove useless code
This commit is contained in:
commit
0c009e3feb
1 changed files with 1 additions and 13 deletions
|
@ -86,7 +86,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', array($this, 'get_class')),
|
new \Twig_SimpleFunction('get_class', 'get_class'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,16 +194,4 @@ class extension extends \Twig_Extension
|
||||||
{
|
{
|
||||||
return call_user_func_array([$this->language, 'is_set'], [$key]);
|
return call_user_func_array([$this->language, 'is_set'], [$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Returns the name of the class of an object
|
|
||||||
*
|
|
||||||
* @param object $object The object
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function get_class($object)
|
|
||||||
{
|
|
||||||
return get_class($object);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue