diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-05-18 20:00:46 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-05-18 20:00:46 +0000 |
commit | 5828612677cfc62f176d8e32b3027bfc70e76a65 (patch) | |
tree | bd423895c3a91b3fdca67a3839ac0f6b43052f52 /phpBB | |
parent | af63e0ee845187db24a137317849c4619c137a3b (diff) | |
download | forums-5828612677cfc62f176d8e32b3027bfc70e76a65.tar forums-5828612677cfc62f176d8e32b3027bfc70e76a65.tar.gz forums-5828612677cfc62f176d8e32b3027bfc70e76a65.tar.bz2 forums-5828612677cfc62f176d8e32b3027bfc70e76a65.tar.xz forums-5828612677cfc62f176d8e32b3027bfc70e76a65.zip |
#26885
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8563 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/functions_user.php | 9 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/mcp_queue.html | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 9ad93e8fea..f145431a5d 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -107,6 +107,7 @@ <li>[Fix] Added missing form token in acp (thanks NBBN).</li> <li>[Feature] Added optional stricter upload validation to avoid mime sniffing in addition to the safeguards provided by file.php. (thanks to Nicolas Grekas for compiling the list).</li> <li>[Fix] Do not remove whitespace in front of url containing the boards url and no relative path appended (Bug #27355)</li> + <li>[Change] Show email ban reason on registration. Additionally allow custom errors properly returned if using validate_data(). (Bug #26885)</li> </ul> <a name="v300"></a><h3>1.ii. Changes since 3.0.0</h3> diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 1d774a8ff4..0ed93d4376 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); } } } @@ -1610,9 +1613,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 -->"> |