diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index ac4e8a7395..c3627e3d60 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -211,7 +211,7 @@ if ($to_topic_id > 0)
if (!$row = $db->sql_fetchrow($result))
{
- trigger_error($user->lang['Topic_not_exist'] . $return_mode);
+ trigger_error($user->lang['TOPIC_NOT_EXIST'] . $return_mode);
}
$db->sql_freeresult($result);
@@ -361,7 +361,7 @@ else
if ($not_moderator || !get_forum_list('m_', TRUE, TRUE, TRUE))
{
- trigger_error('Not_Moderator');
+ trigger_error('NOT_MODERATOR');
}
else
{
@@ -1058,9 +1058,7 @@ switch ($mode)
$db->sql_query($sql);
}
- $template->assign_vars(array(
- 'META' => '')
- );
+ meta_refresh(3, $redirect_page);
$return_mcp = '
' . sprintf($user->lang['RETURN_MCP'], '', '');
trigger_error($user->lang[$lang_str] . '
' . $l_redirect . $return_mcp);
@@ -1127,7 +1125,7 @@ switch ($mode)
{
if ($row['poster_id'] == ANONYMOUS)
{
- $author = ($row['post_username']) ? $row['post_username'] : $user->lang['Guest'];
+ $author = ($row['post_username']) ? $row['post_username'] : $user->lang['GUEST'];
}
else
{
@@ -1136,12 +1134,12 @@ switch ($mode)
$template->assign_block_vars($block_name, array(
'U_POST_DETAILS' => $mcp_url . '&mode=post_details',
- 'FORUM' => '' . $row['forum_name'] . '',
- 'TOPIC' => '' . $row['topic_title'] . '',
- 'AUTHOR' => $author,
- 'SUBJECT' => '' . (($row['post_subject']) ? $row['post_subject'] : $user->lang['NO_SUBJECT']) . '',
- 'POST_TIME' => $user->format_date($row['post_time']),
- 'S_CHECKBOX' => ''
+ 'FORUM' => '' . $row['forum_name'] . '',
+ 'TOPIC' => '' . $row['topic_title'] . '',
+ 'AUTHOR' => $author,
+ 'SUBJECT' => '' . (($row['post_subject']) ? $row['post_subject'] : $user->lang['NO_SUBJECT']) . '',
+ 'POST_TIME' => $user->format_date($row['post_time']),
+ 'S_CHECKBOX' => ''
));
}
}
@@ -1160,9 +1158,7 @@ switch ($mode)
sync('topic', 'topic_id', $topic_id_list);
sync('reported', 'topic_id', $topic_id_list);
- $template->assign_vars(array(
- 'META' => '')
- );
+ meta_refresh(3, $redirect_page);
$msg = (count($topic_id_list) == 1) ? $user->lang['TOPIC_RESYNCHRONISED'] : $user->lang['TOPICS_RESYNCHRONISED'];
trigger_error($msg . '
' . $l_redirect);
@@ -1204,9 +1200,7 @@ switch ($mode)
$log_mode = (count($post_id_list) == 1) ? 'logm_delete_post' : 'logm_delete_posts';
add_log('mod', $topic_data[$topic_id]['forum_id'], $topic_id, $log_mode, implode(', ', $post_id_list));
- $template->assign_vars(array(
- 'META' => '')
- );
+ meta_refresh(3, $redirect_page);
$msg = (count($post_id_list) == 1) ? $user->lang['POST_REMOVED'] : $user->lang['POSTS_REMOVED'];
trigger_error($msg . '
' . $l_redirect);
@@ -1223,7 +1217,7 @@ switch ($mode)
mcp_header('confirm_body.html');
$template->assign_vars(array(
- 'MESSAGE_TITLE' => $user->lang['Confirm'],
+ 'MESSAGE_TITLE' => $user->lang['CONFIRM'],
'MESSAGE_TEXT' => (count($post_id_list) == 1) ? $user->lang['CONFIRM_DELETE'] : $user->lang['CONFIRM_DELETE_POSTS'],
'S_CONFIRM_ACTION' => "mcp.$phpEx$SID&mode=delete_posts",
@@ -1257,10 +1251,7 @@ switch ($mode)
add_log('mod', $topic_data[$topic_id]['forum_id'], $topic_id, 'logm_delete_topic', $topic_data[$topic_id]['topic_title']);
}
- $template->assign_vars(array(
- 'META' => '')
- );
-
+ meta_refresh(3, $redirect_page);
trigger_error($user->lang['TOPICS_REMOVED'] . '
' . $l_redirect);
}
@@ -1427,7 +1418,7 @@ switch ($mode)
}
else
{
- $poster = (!empty($post_info['username'])) ? $post_info['username'] : ((!$post_info['post_username']) ? $user->lang['Guest'] : $post_info['post_username']);
+ $poster = (!empty($post_info['username'])) ? $post_info['username'] : ((!$post_info['post_username']) ? $user->lang['GUEST'] : $post_info['post_username']);
$message = $post_info['post_text'];
$post_subject = ($post_info['post_subject'] != '') ? $post_info['post_subject'] : $topic_data['topic_title'];
@@ -1540,14 +1531,12 @@ switch ($mode)
$message .= '
' . $l_redirect . '
' . sprintf($user->lang['RETURN_FORUM'], "", '');
- $template->assign_vars(array(
- 'META' => ''
- ));
-
foreach ($topic_id_list as $topic_id)
{
add_log('mod', $forum_id, $topic_id, 'logm_' . $mode);
}
+
+ meta_refresh(3, $redirect_page);
trigger_error($message);
break;
@@ -1840,7 +1829,7 @@ switch ($mode)
{
if ($row['poster_id'] == ANONYMOUS)
{
- $author = ($row['post_username']) ? $row['post_username'] : $user->lang['Guest'];
+ $author = ($row['post_username']) ? $row['post_username'] : $user->lang['GUEST'];
}
else
{
@@ -1910,7 +1899,7 @@ switch ($mode)
'U_POST_DETAILS' => $mcp_url . '&mode=post_details',
'FORUM' => (!empty($row['forum_id'])) ? '' . $row['forum_name'] . '' : $user->lang['POST_GLOBAL'],
'TOPIC' => '' . $row['topic_title'] . '',
- 'REPORTER' => ($row['user_id'] == ANONYMOUS) ? $user->lang['Guest'] : '' . $row['username'] . '',
+ 'REPORTER' => ($row['user_id'] == ANONYMOUS) ? $user->lang['GUEST'] : '' . $row['username'] . '',
'SUBJECT' => '' . (($row['post_subject']) ? $row['post_subject'] : $user->lang['NO_SUBJECT']) . '',
'REPORT_TIME' => $user->format_date($row['report_time'])
));