mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 05:25:47 +02:00
[ticket/13664] Added alias to table to make modding easier.
PHPBB3-13664
This commit is contained in:
@ -44,10 +44,10 @@ function mcp_front_view($id, $mode, $action)
|
|||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'SELECT' => 'COUNT(post_id) AS total',
|
'SELECT' => 'COUNT(post_id) AS total',
|
||||||
'FROM' => array(
|
'FROM' => array(
|
||||||
POSTS_TABLE => '',
|
POSTS_TABLE => 'p',
|
||||||
),
|
),
|
||||||
'WHERE' => $db->sql_in_set('forum_id', $forum_list) . '
|
'WHERE' => $db->sql_in_set('p.forum_id', $forum_list) . '
|
||||||
AND ' . $db->sql_in_set('post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE))
|
AND ' . $db->sql_in_set('p.post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE))
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user