mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17100] Clean up code a bit based on code reviews
PHPBB3-17100
This commit is contained in:
parent
d2e14f5d5d
commit
860598026b
2 changed files with 2 additions and 10 deletions
|
@ -48,12 +48,6 @@ class acp_board
|
|||
global $config, $phpbb_root_path, $phpEx;
|
||||
global $cache, $phpbb_container, $phpbb_dispatcher, $phpbb_log;
|
||||
|
||||
if (!$language)
|
||||
{
|
||||
/** @var language $language Language object */
|
||||
$language = $phpbb_container->get('language');
|
||||
}
|
||||
|
||||
$this->config = $config;
|
||||
$this->language = $language;
|
||||
$this->user = $user;
|
||||
|
@ -1071,9 +1065,7 @@ class acp_board
|
|||
*/
|
||||
function timezone_select($value, $key)
|
||||
{
|
||||
global $user;
|
||||
|
||||
$timezone_select = phpbb_timezone_select($user, $value, true);
|
||||
$timezone_select = phpbb_timezone_select($this->user, $value, true);
|
||||
|
||||
return [
|
||||
'tag' => 'select',
|
||||
|
|
|
@ -368,7 +368,7 @@ function phpbb_build_cfg_template(array $tpl_type, string $key, &$new_ary, $conf
|
|||
|
||||
case 'radio':
|
||||
$tpl_type_cond = explode('_', $tpl_type[1]);
|
||||
$type_no = !(($tpl_type_cond[0] == 'disabled' || $tpl_type_cond[0] == 'enabled'));
|
||||
$type_no = $tpl_type_cond[0] != 'disabled' && $tpl_type_cond[0] != 'enabled';
|
||||
|
||||
$no_button = [
|
||||
'type' => 'radio',
|
||||
|
|
Loading…
Add table
Reference in a new issue