r89800 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89799‎ | r89800 | r89801 >
Date:21:31, 9 June 2011
Author:raymond
Status:ok
Tags:
Comment:
Self revert r89797: At least the block log link is wrong. I should not commit when bed calls me :/
Modified paths:
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -259,8 +259,13 @@
260260 }
261261 # Block log link
262262 $tools[] = $sk->linkKnown(
263 - SpecialPage::getTitleFor( 'Log', 'block/' . $username ),
264 - wfMsgHtml( 'sp-contributions-blocklog' )
 263+ SpecialPage::getTitleFor( 'Log' ),
 264+ wfMsgHtml( 'sp-contributions-blocklog' ),
 265+ array(),
 266+ array(
 267+ 'type' => 'block',
 268+ 'page' => $userpage->getPrefixedText()
 269+ )
265270 );
266271 }
267272 # Uploads
@@ -271,8 +276,10 @@
272277
273278 # Other logs link
274279 $tools[] = $sk->linkKnown(
275 - SpecialPage::getTitleFor( 'Log', $username ),
276 - wfMsgHtml( 'sp-contributions-logs' )
 280+ SpecialPage::getTitleFor( 'Log' ),
 281+ wfMsgHtml( 'sp-contributions-logs' ),
 282+ array(),
 283+ array( 'user' => $username )
277284 );
278285
279286 # Add link to deleted user contributions for priviledged users

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89797Simplify link construction a bit.raymond21:22, 9 June 2011

Status & tagging log