Self revert r89797: At least the block log link is wrong. I should not commit when...
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 9 Jun 2011 21:31:51 +0000 (21:31 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 9 Jun 2011 21:31:51 +0000 (21:31 +0000)
includes/specials/SpecialContributions.php

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