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

Merge branch 'ticket/10772' into ticket/develop/10772

* ticket/10772:
  [ticket/10772] Use forum specific style for trigger_error
This commit is contained in:
Vjacheslav Trushkin 2013-05-12 12:42:22 +03:00
commit f3c547bc8d

View File

@ -145,7 +145,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