1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-17 22:11:26 +02:00

[ticket/11031] Fix conversion of topic_replies to topic_posts

PHPBB3-11031
This commit is contained in:
Joas Schilling
2013-10-23 21:13:45 +02:00
parent 6dd4620609
commit 881ad935d5
2 changed files with 12 additions and 3 deletions

View File

@@ -540,6 +540,15 @@ function phpbb_user_id($user_id)
return (int) $user_id;
}
/**
* Return correct user id value
* Everyone's id will be one higher to allow the guest/anonymous user to have a positive id as well
*/
function phpbb_topic_replies_to_posts($num_replies)
{
return (int) $num_replies + 1;
}
/* Copy additional table fields from old forum to new forum if user wants this (for Mod compatibility for example)
function phpbb_copy_table_fields()
{