1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11582] Use member isntead of a new variable everytime

PHPBB3-11582
This commit is contained in:
Joas Schilling
2013-07-06 13:52:09 +02:00
parent 9c653341e4
commit 22ba3de1a2
2 changed files with 10 additions and 12 deletions

View File

@@ -165,7 +165,7 @@ class phpbb_permissions
*/
public function get_permission_lang($permission)
{
return (isset($this->permissions[$permission]['lang'])) ? $this->user->lang($this->permissions[$permission]['lang']) : $this->user->lang('ACL_' . strtoupper($permission));
return (isset($this->permissions['acl_' . $permission]['lang'])) ? $this->user->lang($this->permissions['acl_' . $permission]['lang']) : $this->user->lang('ACL_' . strtoupper($permission));
}
protected $types = array(