aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 3d8ce85e59..8b8e3f8246 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -676,9 +676,9 @@ if ($submit || $preview || $refresh)
if (($username != '' && $user->data['user_id'] == ANONYMOUS) || ($mode == 'edit' && $post_username != ''))
{
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
- $userdata = new userdata();
+ $ucp = new ucp();
$username = strip_tags(htmlspecialchars($username));
- if (($result = $userdata->validate_username($username)) != false)
+ if (($result = $ucp->validate_username($username)) != false)
{
$err_msg .= ((!empty($err_msg)) ? '<br />' : '') . $result;
}