Use standard linker functions to make user and tool links; fixes a bizarre blip I...
authorRob Church <robchurch@users.mediawiki.org>
Fri, 16 Jun 2006 14:20:17 +0000 (14:20 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 16 Jun 2006 14:20:17 +0000 (14:20 +0000)
includes/ImagePage.php

index fc1f1a6..8a5e166 100644 (file)
@@ -700,19 +700,14 @@ class ImageHistoryList {
                                $dlink = $del;
                        }
                }
-               if ( 0 == $user ) {
-                       $userlink = $usertext;
-               } else {
-                       $userlink = $this->skin->makeLinkObj( Title::makeTitle( NS_USER, $usertext ), $usertext );
-                       $usertalk = $this->skin->makeLinkObj( Title::makeTitle( NS_USER_TALK, $usertext), $wgContLang->getNsText( NS_TALK ) );
-                       $userdata = $userlink . ' (' . $usertalk . ')';
-               }
+               
+               $userlink = $this->skin->userLink( $user, $usertext ) . $this->skin->userToolLinks( $user, $usertext );
                $nbytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
                        $wgLang->formatNum( $size ) );
                $widthheight = wfMsg( 'widthheight', $width, $height );
                $style = $this->skin->getInternalLinkAttributes( $url, $datetime );
 
-               $s = "<li> ({$dlink}) ({$rlink}) <a href=\"{$url}\"{$style}>{$datetime}</a> . . {$userdata} . . {$widthheight} ({$nbytes})";
+               $s = "<li> ({$dlink}) ({$rlink}) <a href=\"{$url}\"{$style}>{$datetime}</a> . . {$userlink} . . {$widthheight} ({$nbytes})";
 
                $s .= $this->skin->commentBlock( $description, $wgTitle );
                $s .= "</li>\n";