aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors/functions_phpbb20.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-10-23 21:13:45 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-10-23 21:13:45 +0200
commit881ad935d55dd69876f9c5aee1a9d100242fbbaa (patch)
tree8488fcd49a6544f2c454cd3f1313a88d3e52d439 /phpBB/install/convertors/functions_phpbb20.php
parent6dd462060999f81baa67c20f536f86e6bb6198ce (diff)
downloadforums-881ad935d55dd69876f9c5aee1a9d100242fbbaa.tar
forums-881ad935d55dd69876f9c5aee1a9d100242fbbaa.tar.gz
forums-881ad935d55dd69876f9c5aee1a9d100242fbbaa.tar.bz2
forums-881ad935d55dd69876f9c5aee1a9d100242fbbaa.tar.xz
forums-881ad935d55dd69876f9c5aee1a9d100242fbbaa.zip
[ticket/11031] Fix conversion of topic_replies to topic_posts
PHPBB3-11031
Diffstat (limited to 'phpBB/install/convertors/functions_phpbb20.php')
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index a698f0ef13..136ca991ae 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -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()
{