mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-27 17:49:27 +02:00
[feature/twig] Remove get_lang function (it's not used anywhere)
PHPBB3-11598
This commit is contained in:
parent
46d6899b46
commit
1c7e077fea
@ -178,7 +178,7 @@ class phpbb_template_twig implements phpbb_template
|
||||
* @param array $style_names List of style names in inheritance tree order
|
||||
* @return phpbb_template $this
|
||||
*/
|
||||
public function set_style_names(array $style_names, $style_paths = array())
|
||||
public function set_style_names(array $style_names, array $style_paths = array())
|
||||
{
|
||||
$this->style_names = $style_names;
|
||||
|
||||
@ -292,26 +292,6 @@ class phpbb_template_twig implements phpbb_template
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtains language array.
|
||||
* This is either lang property of $user property, or if
|
||||
* it is not set an empty array.
|
||||
* @return array language entries
|
||||
*/
|
||||
public function get_lang()
|
||||
{
|
||||
if (isset($this->user->lang))
|
||||
{
|
||||
$lang = $this->user->lang;
|
||||
}
|
||||
else
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
return $lang;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the handle and assign the output to a template variable
|
||||
* or return the compiled result.
|
||||
|
Loading…
x
Reference in New Issue
Block a user