mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/13454] Remove unused variables
Part 4 PHPBB3-13454
This commit is contained in:
@@ -727,7 +727,7 @@ function mcp_move_topic($topic_ids)
|
||||
*/
|
||||
function mcp_restore_topic($topic_ids)
|
||||
{
|
||||
global $auth, $user, $db, $phpEx, $phpbb_root_path, $request, $phpbb_container, $phpbb_log;
|
||||
global $user, $phpEx, $phpbb_root_path, $request, $phpbb_container, $phpbb_log;
|
||||
|
||||
if (!phpbb_check_ids($topic_ids, TOPICS_TABLE, 'topic_id', array('m_approve')))
|
||||
{
|
||||
|
@@ -618,7 +618,7 @@ class mcp_queue
|
||||
*/
|
||||
static public function approve_posts($action, $post_id_list, $id, $mode)
|
||||
{
|
||||
global $db, $template, $user, $config, $request, $phpbb_container, $phpbb_dispatcher;
|
||||
global $template, $user, $request, $phpbb_container, $phpbb_dispatcher;
|
||||
global $phpEx, $phpbb_root_path, $phpbb_log;
|
||||
|
||||
if (!phpbb_check_ids($post_id_list, POSTS_TABLE, 'post_id', array('m_approve')))
|
||||
@@ -628,7 +628,7 @@ class mcp_queue
|
||||
|
||||
$redirect = $request->variable('redirect', build_url(array('quickmod')));
|
||||
$redirect = reapply_sid($redirect);
|
||||
$success_msg = $post_url = '';
|
||||
$post_url = '';
|
||||
$approve_log = array();
|
||||
$num_topics = 0;
|
||||
|
||||
|
@@ -519,7 +519,7 @@ class mcp_reports
|
||||
*/
|
||||
function close_report($report_id_list, $mode, $action, $pm = false)
|
||||
{
|
||||
global $db, $template, $user, $config, $auth, $phpbb_log, $request;
|
||||
global $db, $user, $auth, $phpbb_log, $request;
|
||||
global $phpEx, $phpbb_root_path, $phpbb_container;
|
||||
|
||||
$pm_where = ($pm) ? ' AND r.post_id = 0 ' : ' AND r.pm_id = 0 ';
|
||||
|
@@ -637,7 +637,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||
*/
|
||||
function merge_posts($topic_id, $to_topic_id)
|
||||
{
|
||||
global $db, $template, $user, $phpEx, $phpbb_root_path, $auth, $phpbb_log, $request;
|
||||
global $db, $template, $user, $phpEx, $phpbb_root_path, $phpbb_log, $request;
|
||||
|
||||
if (!$to_topic_id)
|
||||
{
|
||||
@@ -689,7 +689,7 @@ function merge_posts($topic_id, $to_topic_id)
|
||||
'redirect' => $redirect,
|
||||
't' => $topic_id)
|
||||
);
|
||||
$success_msg = $return_link = '';
|
||||
$return_link = '';
|
||||
|
||||
if (confirm_box(true))
|
||||
{
|
||||
|
@@ -523,7 +523,7 @@ class mcp_warn
|
||||
function add_warning($user_row, $warning, $send_pm = true, $post_id = 0)
|
||||
{
|
||||
global $phpEx, $phpbb_root_path, $config, $phpbb_log;
|
||||
global $template, $db, $user, $auth;
|
||||
global $db, $user;
|
||||
|
||||
if ($send_pm)
|
||||
{
|
||||
|
Reference in New Issue
Block a user