aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-06 18:43:55 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-06 18:43:55 +0000
commit0f0d160ded7fd129d40a4ec0372cab11d7ce7a88 (patch)
treef8e6f506f09bb6fdb81deece5da18f2ee41e3a7e /phpBB/posting.php
parentc645088a34bfcaf31ba10e90badb148a284e7133 (diff)
downloadforums-0f0d160ded7fd129d40a4ec0372cab11d7ce7a88.tar
forums-0f0d160ded7fd129d40a4ec0372cab11d7ce7a88.tar.gz
forums-0f0d160ded7fd129d40a4ec0372cab11d7ce7a88.tar.bz2
forums-0f0d160ded7fd129d40a4ec0372cab11d7ce7a88.tar.xz
forums-0f0d160ded7fd129d40a4ec0372cab11d7ce7a88.zip
- support re-caching of theme data if stylesheet.css changed and load_tplcompile enabled
- mcp fixes - fixed some usability issues git-svn-id: file:///svn/phpbb/trunk@6447 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index ff42fc2886..bcd6f0f7bb 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -689,13 +689,14 @@ if ($submit || $preview || $refresh)
}
// Validate username
- if (($post_data['username'] && !$user->data['is_registered']) || ($mode == 'edit' && $post_data['post_username']))
+ if (($post_data['username'] && !$user->data['is_registered']) || ($mode == 'edit' && $post_data['username'] && $post_data['post_username'] != $post_data['username']))
{
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
- if (($result = validate_username(($mode == 'edit' && $post_data['post_username']) ? $post_data['post_username'] : $post_data['username'])) != false)
+ if (($result = validate_username($post_data['username'])) !== false)
{
- $error[] = $user->lang[$result];
+ $user->add_lang('ucp');
+ $error[] = $user->lang[$result . '_USERNAME'];
}
}