diff --git a/phpBB/phpbb/template/twig/extension.php b/phpBB/phpbb/template/twig/extension.php index da290529c5..9374a89171 100644 --- a/phpBB/phpbb/template/twig/extension.php +++ b/phpBB/phpbb/template/twig/extension.php @@ -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); - } }