mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[ticket/13454] Remove unused variables
This is part 2 of the pr. PHPBB3-13454
This commit is contained in:
@@ -194,8 +194,7 @@ class acp_ban
|
||||
{
|
||||
case 'user':
|
||||
|
||||
$field = 'username';
|
||||
$l_ban_cell = $user->lang['USERNAME'];
|
||||
$field = 'username';;
|
||||
|
||||
$sql = 'SELECT b.*, u.user_id, u.username, u.username_clean
|
||||
FROM ' . BANLIST_TABLE . ' b, ' . USERS_TABLE . ' u
|
||||
@@ -208,7 +207,6 @@ class acp_ban
|
||||
case 'ip':
|
||||
|
||||
$field = 'ban_ip';
|
||||
$l_ban_cell = $user->lang['IP_HOSTNAME'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . BANLIST_TABLE . '
|
||||
@@ -221,7 +219,6 @@ class acp_ban
|
||||
case 'email':
|
||||
|
||||
$field = 'ban_email';
|
||||
$l_ban_cell = $user->lang['EMAIL_ADDRESS'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . BANLIST_TABLE . '
|
||||
|
@@ -178,7 +178,7 @@ class acp_captcha
|
||||
*/
|
||||
function deliver_demo($selected)
|
||||
{
|
||||
global $db, $user, $config, $phpbb_container;
|
||||
global $phpbb_container;
|
||||
|
||||
$captcha = $phpbb_container->get('captcha.factory')->get_instance($selected);
|
||||
$captcha->init(CONFIRM_REG);
|
||||
|
@@ -306,8 +306,6 @@ class acp_groups
|
||||
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
|
||||
}
|
||||
|
||||
$data = $submit_ary = array();
|
||||
|
||||
if ($action == 'edit' && !$group_id)
|
||||
{
|
||||
trigger_error($user->lang['NO_GROUP'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
|
@@ -194,7 +194,6 @@ class acp_icons
|
||||
|
||||
$data = array();
|
||||
$after = false;
|
||||
$display = 0;
|
||||
$order_lists = array('', '');
|
||||
$add_order_lists = array('', '');
|
||||
$display_count = 0;
|
||||
@@ -209,7 +208,6 @@ class acp_icons
|
||||
if ($row[$fields . '_id'] == $icon_id)
|
||||
{
|
||||
$after = true;
|
||||
$display = $row['display_on_posting'];
|
||||
$data[$row[$fields . '_url']] = $row;
|
||||
}
|
||||
else
|
||||
|
@@ -232,8 +232,8 @@ class acp_prune
|
||||
*/
|
||||
function prune_users($id, $mode)
|
||||
{
|
||||
global $db, $user, $auth, $template, $cache, $phpbb_log, $request;
|
||||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_container;
|
||||
global $db, $user, $auth, $template, $phpbb_log, $request;
|
||||
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_container;
|
||||
|
||||
/** @var \phpbb\group\helper $group_helper */
|
||||
$group_helper = $phpbb_container->get('group_helper');
|
||||
|
@@ -232,8 +232,8 @@ class acp_search
|
||||
|
||||
function index($id, $mode)
|
||||
{
|
||||
global $db, $user, $auth, $template, $cache, $phpbb_log, $request;
|
||||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
global $db, $user, $template, $phpbb_log, $request;
|
||||
global $config, $phpbb_admin_path, $phpEx;
|
||||
|
||||
$action = $request->variable('action', '');
|
||||
$this->state = explode(',', $config['search_indexing_state']);
|
||||
|
@@ -201,7 +201,6 @@ class acp_styles
|
||||
$messages = array();
|
||||
$installed_names = array();
|
||||
$installed_dirs = array();
|
||||
$last_installed = false;
|
||||
foreach ($dirs as $dir)
|
||||
{
|
||||
if (in_array($dir, $this->reserved_style_names))
|
||||
@@ -224,7 +223,6 @@ class acp_styles
|
||||
$style['style_id'] = $this->install_style($style);
|
||||
$style['_installed'] = true;
|
||||
$found = true;
|
||||
$last_installed = $style['style_id'];
|
||||
$installed_names[] = $style['style_name'];
|
||||
$installed_dirs[] = $style['style_path'];
|
||||
$messages[] = sprintf($this->user->lang['STYLE_INSTALLED'], htmlspecialchars($style['style_name']));
|
||||
|
@@ -298,13 +298,11 @@ class acp_users
|
||||
case 'banuser':
|
||||
$ban[] = $user_row['username'];
|
||||
$reason = 'USER_ADMIN_BAN_NAME_REASON';
|
||||
$log = 'LOG_USER_BAN_USER';
|
||||
break;
|
||||
|
||||
case 'banemail':
|
||||
$ban[] = $user_row['user_email'];
|
||||
$reason = 'USER_ADMIN_BAN_EMAIL_REASON';
|
||||
$log = 'LOG_USER_BAN_EMAIL';
|
||||
break;
|
||||
|
||||
case 'banip':
|
||||
@@ -322,7 +320,6 @@ class acp_users
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$reason = 'USER_ADMIN_BAN_IP_REASON';
|
||||
$log = 'LOG_USER_BAN_IP';
|
||||
break;
|
||||
}
|
||||
|
||||
|
@@ -266,7 +266,7 @@ class auth_admin extends \phpbb\auth\auth
|
||||
*/
|
||||
function display_mask($mode, $permission_type, &$hold_ary, $user_mode = 'user', $local = false, $group_display = true)
|
||||
{
|
||||
global $template, $user, $db, $phpbb_root_path, $phpEx, $phpbb_container;
|
||||
global $template, $user, $db, $phpbb_container;
|
||||
|
||||
/* @var $phpbb_permissions \phpbb\permissions */
|
||||
$phpbb_permissions = $phpbb_container->get('acl.permissions');
|
||||
|
Reference in New Issue
Block a user