mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/twig] Remove get_lang function (it's not used anywhere)
PHPBB3-11598
This commit is contained in:
parent
46d6899b46
commit
1c7e077fea
1 changed files with 1 additions and 21 deletions
|
@ -178,7 +178,7 @@ class phpbb_template_twig implements phpbb_template
|
||||||
* @param array $style_names List of style names in inheritance tree order
|
* @param array $style_names List of style names in inheritance tree order
|
||||||
* @return phpbb_template $this
|
* @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;
|
$this->style_names = $style_names;
|
||||||
|
|
||||||
|
@ -292,26 +292,6 @@ class phpbb_template_twig implements phpbb_template
|
||||||
return false;
|
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
|
* Display the handle and assign the output to a template variable
|
||||||
* or return the compiled result.
|
* or return the compiled result.
|
||||||
|
|
Loading…
Add table
Reference in a new issue