Decouple revision.rev_id from text.old_id
[lhc/web/wiklou.git] / includes / SpecialUserlogin.php
index 0f6fc19..7b5fea8 100644 (file)
@@ -191,7 +191,7 @@ class LoginForm {
         */
        function addNewAccountInternal() {
                global $wgUser, $wgOut;
-               global $wgMaxNameChars, $wgUseLatin1;
+               global $wgMaxNameChars;
                global $wgMemc, $wgAccountCreationThrottle, $wgDBname, $wgIP;
                global $wgMinimalPasswordLength;
 
@@ -212,7 +212,6 @@ class LoginForm {
                  $wgUser->isIP( $name ) ||
                  (strpos( $name, '/' ) !== false) ||
                  (strlen( $name ) > $wgMaxNameChars) ||
-                  ($wgUseLatin1 && preg_match( "/[\x80-\xA0]/", $name )) ||
                  ucFirst($name) != $u->getName() ) 
                {
                        $this->mainLoginForm( wfMsg( 'noname' ) );