only minor things... blabla

git-svn-id: file:///svn/phpbb/trunk@4900 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2004-05-26 20:56:21 +00:00
parent 88028d3f2a
commit 87b3f56c32
2 changed files with 28 additions and 20 deletions

View file

@ -441,7 +441,7 @@ class mcp_main extends mcp
'S_SELECT_TOPIC' => ($mode == 'merge_select' && $row['topic_id'] != $this->topic_id) ? TRUE : FALSE, 'S_SELECT_TOPIC' => ($mode == 'merge_select' && $row['topic_id'] != $this->topic_id) ? TRUE : FALSE,
'U_SELECT_TOPIC' => $this->url . '&mode=merge&to_topic_id=' . $row['topic_id'] . $this->selected_ids, 'U_SELECT_TOPIC' => $this->url . '&mode=merge&to_topic_id=' . $row['topic_id'] . $this->selected_ids,
'U_MCP_QUEUE' => $this->url . '&mode=approve&t=' . $row['topic_id'], 'U_MCP_QUEUE' => $this->url . '&i=queue&mode=approve&t=' . $row['topic_id'],
'U_MCP_REPORT' => $this->url . '&mode=reports&t=' . $row['topic_id'], 'U_MCP_REPORT' => $this->url . '&mode=reports&t=' . $row['topic_id'],
'ATTACH_ICON_IMG' => ($auth->acl_gets('f_download', 'u_download', $row['forum_id']) && $row['topic_attachment']) ? $user->img('icon_attach', sprintf($user->lang['TOTAL_ATTACHMENTS'], $row['topic_attachment'])) : '', 'ATTACH_ICON_IMG' => ($auth->acl_gets('f_download', 'u_download', $row['forum_id']) && $row['topic_attachment']) ? $user->img('icon_attach', sprintf($user->lang['TOTAL_ATTACHMENTS'], $row['topic_attachment'])) : '',
@ -860,7 +860,7 @@ class mcp_main extends mcp
'S_POST_UNAPPROVED' => ($row['post_approved']) ? FALSE : TRUE, 'S_POST_UNAPPROVED' => ($row['post_approved']) ? FALSE : TRUE,
'U_POST_DETAILS' => "mcp.$phpEx$SID&f=" . $row['forum_id'] . '&t=' . $row['topic_id'] . '&p=' . $row['post_id'] . '&mode=post_details', 'U_POST_DETAILS' => "mcp.$phpEx$SID&f=" . $row['forum_id'] . '&t=' . $row['topic_id'] . '&p=' . $row['post_id'] . '&mode=post_details',
'U_APPROVE' => "mcp.$phpEx$SID&mode=approve&p=" . $row['post_id'] 'U_APPROVE' => "mcp.$phpEx$SID&i=queue&mode=approve&p=" . $row['post_id']
)); ));
unset($rowset[$i]); unset($rowset[$i]);

View file

@ -132,7 +132,8 @@ class mcp_queue extends mcp
$db->sql_query($sql); $db->sql_query($sql);
// Now resync everything // Now resync everything
sync('topic', 'topic_id', $topic_id_list, TRUE, TRUE); sync('topic', 'topic_id', $topic_id_list, true, true);
sync('forum', 'forum_id', $this->forum_id, true, true);
// Back to... whatever // Back to... whatever
if ($this->quickmod) if ($this->quickmod)
@ -178,6 +179,8 @@ class mcp_queue extends mcp
$row_num[$row['post_id']] = $i++; $row_num[$row['post_id']] = $i++;
} }
if (sizeof($post_ids))
{
$sql = 'SELECT f.forum_id, f.forum_name, t.topic_id, t.topic_title, p.post_id, p.post_username, p.poster_id, p.post_time, u.username $sql = 'SELECT f.forum_id, f.forum_name, t.topic_id, t.topic_title, p.post_id, p.post_username, p.poster_id, p.post_time, u.username
FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . " u FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . " u
WHERE p.post_id IN (" . implode(', ', $post_ids) . ") WHERE p.post_id IN (" . implode(', ', $post_ids) . ")
@ -200,6 +203,11 @@ class mcp_queue extends mcp
unset($post_data, $post_ids); unset($post_data, $post_ids);
} }
else else
{
$rowset = array();
}
}
else
{ {
$sql = 'SELECT f.forum_id, f.forum_name, t.topic_id, t.topic_title, t.topic_time AS post_time, t.topic_poster AS poster_id, t.topic_first_post_id AS post_id, t.topic_first_poster_name AS username $sql = 'SELECT f.forum_id, f.forum_name, t.topic_id, t.topic_title, t.topic_time AS post_time, t.topic_poster AS poster_id, t.topic_first_post_id AS post_id, t.topic_first_poster_name AS username
FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f