Skip to content

Commit c03c0b7

Browse files
authored
Update post.php
Changes needed at TOPIC ID to direct post links, which are required for the notification options box to appear.
1 parent 52ece29 commit c03c0b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@
389389
$GLOBALS['xoopsDB']->queryF(' REPLACE INTO ' . $GLOBALS['xoopsDB']->prefix('newbb_user_stats') . " SET uid = '{$uid}', user_topics = '{$topics}', user_posts = '{$posts}', user_digests = '{$digests}', user_lastpost = '{$lastpost}'");
390390
}
391391

392-
$redirect = XOOPS_URL . '/modules/newbb/viewtopic.php?post_id=' . $postid;
392+
$redirect = XOOPS_URL . '/modules/newbb/viewtopic.php?topic_id=' . $topicObject->getVar('topic_id') . '&post_id=' . $postid . '#forumpost' . $postid ;
393393
$message = _MD_NEWBB_THANKSSUBMIT . '<br>' . $error_upload;
394394
} else {
395395
$redirect = XOOPS_URL . '/modules/newbb/viewforum.php?forum=' . $postObject->getVar('forum_id');

0 commit comments

Comments
 (0)