mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +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:
commit
f3c547bc8d
@ -145,7 +145,15 @@ if ($view && !$post_id)
|
|||||||
|
|
||||||
if (!$row)
|
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');
|
trigger_error(($view == 'next') ? 'NO_NEWER_TOPICS' : 'NO_OLDER_TOPICS');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user