mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-24 08:10:13 +02:00
[ticket/15366] Remove useless code
PHPBB3-15366
This commit is contained in:
parent
024cf709c4
commit
7b4c355190
@ -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…
x
Reference in New Issue
Block a user