Simplify link construction a bit.
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 10 Jun 2011 16:48:15 +0000 (16:48 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 10 Jun 2011 16:48:15 +0000 (16:48 +0000)
includes/specials/SpecialContributions.php

index a9afbc6..86e502f 100644 (file)
@@ -259,11 +259,10 @@ class SpecialContributions extends SpecialPage {
                        }
                        # Block log link
                        $tools[] = $sk->linkKnown(
-                               SpecialPage::getTitleFor( 'Log' ),
+                               SpecialPage::getTitleFor( 'Log', 'block' ),
                                wfMsgHtml( 'sp-contributions-blocklog' ),
                                array(),
                                array(
-                                       'type' => 'block',
                                        'page' => $userpage->getPrefixedText()
                                )
                        );
@@ -276,10 +275,8 @@ class SpecialContributions extends SpecialPage {
 
                # Other logs link
                $tools[] = $sk->linkKnown(
-                       SpecialPage::getTitleFor( 'Log' ),
-                       wfMsgHtml( 'sp-contributions-logs' ),
-                       array(),
-                       array( 'user' => $username )
+                       SpecialPage::getTitleFor( 'Log', $username ),
+                       wfMsgHtml( 'sp-contributions-logs' )
                );
 
                # Add link to deleted user contributions for priviledged users