mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 06:20:46 +02:00
Cleaning up (#13689)
Also removed the useless login box from the ACP. git-svn-id: file:///svn/phpbb/trunk@7919 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -276,7 +276,7 @@ function mcp_resync_topics($topic_ids)
|
||||
|
||||
if (!sizeof($topic_ids))
|
||||
{
|
||||
trigger_error($user->lang['NO_TOPIC_SELECTED']);
|
||||
trigger_error('NO_TOPIC_SELECTED');
|
||||
}
|
||||
|
||||
if (!check_ids($topic_ids, TOPICS_TABLE, 'topic_id', array('m_')))
|
||||
|
@@ -86,7 +86,7 @@ class mcp_notes
|
||||
|
||||
if (!$userrow)
|
||||
{
|
||||
trigger_error($user->lang['NO_USER']);
|
||||
trigger_error('NO_USER');
|
||||
}
|
||||
|
||||
$user_id = $userrow['user_id'];
|
||||
|
@@ -26,7 +26,7 @@ function mcp_post_details($id, $mode, $action)
|
||||
|
||||
if (!sizeof($post_info))
|
||||
{
|
||||
trigger_error($user->lang['POST_NOT_EXIST']);
|
||||
trigger_error('POST_NOT_EXIST');
|
||||
}
|
||||
|
||||
$post_info = $post_info[$post_id];
|
||||
@@ -79,7 +79,7 @@ function mcp_post_details($id, $mode, $action)
|
||||
|
||||
if (!$row)
|
||||
{
|
||||
trigger_error($user->lang['NO_USER']);
|
||||
trigger_error('NO_USER');
|
||||
}
|
||||
|
||||
if ($auth->acl_get('m_chgposter', $post_info['forum_id']))
|
||||
@@ -473,7 +473,7 @@ function change_poster(&$post_info, $userdata)
|
||||
|
||||
if (!sizeof($post_info))
|
||||
{
|
||||
trigger_error($user->lang['POST_NOT_EXIST']);
|
||||
trigger_error('POST_NOT_EXIST');
|
||||
}
|
||||
|
||||
$post_info = $post_info[$post_id];
|
||||
|
@@ -224,7 +224,7 @@ class mcp_queue
|
||||
|
||||
if (!sizeof($topic_info))
|
||||
{
|
||||
trigger_error($user->lang['TOPIC_NOT_EXIST']);
|
||||
trigger_error('TOPIC_NOT_EXIST');
|
||||
}
|
||||
|
||||
$topic_info = $topic_info[$topic_id];
|
||||
|
@@ -242,7 +242,7 @@ class mcp_reports
|
||||
|
||||
if (!sizeof($topic_info))
|
||||
{
|
||||
trigger_error($user->lang['TOPIC_NOT_EXIST']);
|
||||
trigger_error('TOPIC_NOT_EXIST');
|
||||
}
|
||||
|
||||
$topic_info = $topic_info[$topic_id];
|
||||
|
@@ -25,7 +25,7 @@ function mcp_topic_view($id, $mode, $action)
|
||||
|
||||
if (!sizeof($topic_info))
|
||||
{
|
||||
trigger_error($user->lang['TOPIC_NOT_EXIST']);
|
||||
trigger_error('TOPIC_NOT_EXIST');
|
||||
}
|
||||
|
||||
$topic_info = $topic_info[$topic_id];
|
||||
@@ -439,7 +439,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||
|
||||
if (!sizeof($post_id_list))
|
||||
{
|
||||
trigger_error($user->lang['NO_POST_SELECTED']);
|
||||
trigger_error('NO_POST_SELECTED');
|
||||
}
|
||||
|
||||
$icon_id = request_var('icon', 0);
|
||||
|
@@ -203,19 +203,19 @@ class mcp_warn
|
||||
|
||||
if (!$user_row)
|
||||
{
|
||||
trigger_error($user->lang['NO_POST']);
|
||||
trigger_error('NO_POST');
|
||||
}
|
||||
|
||||
// There is no point issuing a warning to ignored users (ie anonymous and bots)
|
||||
if ($user_row['user_type'] == USER_IGNORE)
|
||||
{
|
||||
trigger_error($user->lang['CANNOT_WARN_ANONYMOUS']);
|
||||
trigger_error('CANNOT_WARN_ANONYMOUS');
|
||||
}
|
||||
|
||||
// Prevent someone from warning themselves
|
||||
if ($user_row['user_id'] == $user->data['user_id'])
|
||||
{
|
||||
trigger_error($user->lang['CANNOT_WARN_SELF']);
|
||||
trigger_error('CANNOT_WARN_SELF');
|
||||
}
|
||||
|
||||
// Check if there is already a warning for this post to prevent multiple
|
||||
@@ -229,7 +229,7 @@ class mcp_warn
|
||||
|
||||
if ($row)
|
||||
{
|
||||
trigger_error($user->lang['ALREADY_WARNED']);
|
||||
trigger_error('ALREADY_WARNED');
|
||||
}
|
||||
|
||||
$user_id = $user_row['user_id'];
|
||||
@@ -325,7 +325,7 @@ class mcp_warn
|
||||
// Prevent someone from warning themselves
|
||||
if ($user_row['user_id'] == $user->data['user_id'])
|
||||
{
|
||||
trigger_error($user->lang['CANNOT_WARN_SELF']);
|
||||
trigger_error('CANNOT_WARN_SELF');
|
||||
}
|
||||
|
||||
$user_id = $user_row['user_id'];
|
||||
|
Reference in New Issue
Block a user