summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-05 16:26:19 -0400
committerCraig Andrews <candrews@integralblue.com>2009-08-05 16:26:19 -0400
commit83ff1cecd39e197e108ecdaba7139b59d22dbee0 (patch)
tree6c0877ef42fa5c5b154159d69ad901e44584c80e /plugins
parentc3a522623c3a0628c33407ee01b16e189c44bba5 (diff)
Use NICKNAME_FMT everywhere consistently
Diffstat (limited to 'plugins')
-rw-r--r--plugins/FBConnect/FBConnectAuth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FBConnect/FBConnectAuth.php b/plugins/FBConnect/FBConnectAuth.php
index 3cf9fefc1..a3e2cdadc 100644
--- a/plugins/FBConnect/FBConnectAuth.php
+++ b/plugins/FBConnect/FBConnectAuth.php
@@ -238,7 +238,7 @@ class FBConnectauthAction extends Action
if (!Validate::string($nickname, array('min_length' => 1,
'max_length' => 64,
- 'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
+ 'format' => NICKNAME_FMT))) {
$this->showForm(_('Nickname must have only lowercase letters and numbers and no spaces.'));
return;
}
@@ -418,7 +418,7 @@ class FBConnectauthAction extends Action
{
if (!Validate::string($str, array('min_length' => 1,
'max_length' => 64,
- 'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
+ 'format' => NICKNAME_FMT))) {
return false;
}
if (!User::allowed_nickname($str)) {