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:
parent
b347986923
commit
170333a6fc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user