[feature/module_services] Make announcements module a service

This commit is contained in:
Marc Alexander
2013-11-14 14:02:02 +01:00
parent fd12ba4b8e
commit f852f166f7
5 changed files with 549 additions and 478 deletions

View File

@@ -183,15 +183,11 @@ function phpbb_fetch_posts($module_id, $forum_from, $permissions, $number_of_pos
if ($type == 'announcements' && $global_f < 1)
{
$sql = 'SELECT
forum_id
FROM
' . FORUMS_TABLE . '
WHERE
forum_type = ' . FORUM_POST . '
' . str_replace('t.', '', $str_where) . '
ORDER BY
forum_id';
$sql = 'SELECT forum_id
FROM ' . FORUMS_TABLE . '
WHERE forum_type = ' . FORUM_POST . '
' . str_replace('t.', '', $str_where) . '
ORDER BY forum_id';
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);