1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 01:20:40 +01:00

Merge pull request #4959 from rubencm/ticket/15366

[ticket/15366] Remove useless code
This commit is contained in:
Marc Alexander 2017-10-29 22:09:49 +01:00
commit 0c009e3feb
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -86,7 +86,7 @@ class extension extends \Twig_Extension
return array(
new \Twig_SimpleFunction('lang', array($this, 'lang')),
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]);
}
/*
* 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);
}
}