diff options
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index a472cb3f55..d74963cc07 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -701,6 +701,7 @@ if (($submit) || ($preview) || ($refresh)) // Validate username if (($username != '' && $user->data['user_id'] == ANONYMOUS) || ($mode == 'edit' && $post_username != '')) { + include($phpbb_root_path . 'includes/functions_user.' . $phpEx); $userdata = new userdata(); $username = strip_tags(htmlspecialchars($username)); if (($result = $userdata->validate_username($username)) != false) @@ -1210,6 +1211,7 @@ function topic_review($topic_id, $is_inline_review = false) FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u WHERE p.topic_id = $topic_id AND p.poster_id = u.user_id + AND p.post_approved = 1 ORDER BY p.post_time DESC"; $result = $db->sql_query_limit($sql, $config['posts_per_page']); |