1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 07:07:51 +02:00

[ticket/10772] Use forum specific style for trigger_error

PHPBB3-10772
This commit is contained in:
Vjacheslav Trushkin 2013-05-11 22:49:42 +03:00
parent b347986923
commit 170333a6fc

View File

@ -146,7 +146,15 @@ if ($view && !$post_id)
if (!$row)
{
$user->setup('viewtopic');
// Check for forum style
$sql = 'SELECT forum_style
FROM ' . FORUMS_TABLE . "
WHERE forum_id = $forum_id";
$result = $db->sql_query($sql);
$forum_style = (int) $db->sql_fetchfield('forum_style');
$db->sql_freeresult($result);
$user->setup('viewtopic', $forum_style);
trigger_error(($view == 'next') ? 'NO_NEWER_TOPICS' : 'NO_OLDER_TOPICS');
}
else