bug fix
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 10 Jul 2004 01:09:36 +0000 (01:09 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 10 Jul 2004 01:09:36 +0000 (01:09 +0000)
includes/EditPage.php

index 52b027a..04ff9c1 100644 (file)
@@ -460,10 +460,10 @@ htmlspecialchars( $wgLang->recodeForEdit( $this->textbox1 ) ) .
                $reason = $wgUser->blockedFor();
                 $ip = $wgIP;
                
-               if ( is_string( $id ) ) {
-                       $name = $id;
-               } else {
+               if ( is_numeric( $id ) ) {
                        $name = User::whoIs( $id );
+               } else {
+                       $name = $id;
                }
                $link = "[[" . $wgLang->getNsText( Namespace::getUser() ) .
                  ":{$name}|{$name}]]";