diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-05-18 20:02:14 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-05-18 20:02:14 +0000 |
commit | 53dc95d429a8fe741642a44b0489dea5087ae614 (patch) | |
tree | 348f3ee9179f281996183299f05d7437d785db93 /phpBB | |
parent | 41d8c20836f0393eb051540c98885da067abd549 (diff) | |
download | forums-53dc95d429a8fe741642a44b0489dea5087ae614.tar forums-53dc95d429a8fe741642a44b0489dea5087ae614.tar.gz forums-53dc95d429a8fe741642a44b0489dea5087ae614.tar.bz2 forums-53dc95d429a8fe741642a44b0489dea5087ae614.tar.xz forums-53dc95d429a8fe741642a44b0489dea5087ae614.zip |
#26885
git-svn-id: file:///svn/phpbb/trunk@8564 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_user.php | 9 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/mcp_queue.html | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index fa4b2f1771..40dc87b2e1 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1194,6 +1194,8 @@ function user_ipwhois($ip) */ function validate_data($data, $val_ary) { + global $user; + $error = array(); foreach ($val_ary as $var => $val_seq) @@ -1210,7 +1212,8 @@ function validate_data($data, $val_ary) if ($result = call_user_func_array('validate_' . $function, $validate)) { - $error[] = $result . '_' . strtoupper($var); + // Since errors are checked later for their language file existence, we need to make sure custom errors are not adjusted. + $error[] = (empty($user->lang[$result . '_' . strtoupper($var)])) ? $result : $result . '_' . strtoupper($var); } } } @@ -1535,9 +1538,9 @@ function validate_email($email, $allowed_email = false) } } - if ($user->check_ban(false, false, $email, true) == true) + if (($ban_reason = $user->check_ban(false, false, $email, true)) !== false) { - return 'EMAIL_BANNED'; + return ($ban_reason === true) ? 'EMAIL_BANNED' : $ban_reason; } if (!$config['allow_emailreuse']) diff --git a/phpBB/styles/prosilver/template/mcp_queue.html b/phpBB/styles/prosilver/template/mcp_queue.html index e2f140667c..0af3032fcf 100644 --- a/phpBB/styles/prosilver/template/mcp_queue.html +++ b/phpBB/styles/prosilver/template/mcp_queue.html @@ -36,7 +36,7 @@ <!-- BEGIN postrow --> <!-- IF postrow.S_DELETED_TOPIC --> - <li><p class="notopics">{L_DELETED_TOPIC}</li> + <li><p class="notopics">{L_DELETED_TOPIC}</p></li> <!-- ELSE --> <li class="row<!-- IF postrow.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF -->"> |