Skip to content

Commit 7871d96

Browse files
authored
Merge pull request #108 from BigKev73/patch-23
Update post.php
2 parents 689d975 + c03c0b7 commit 7871d96

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
@@ -390,7 +390,7 @@
390390
$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}'");
391391
}
392392

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

0 commit comments

Comments
 (0)