r89797 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89796‎ | r89797 | r89798 >
Date:21:22, 9 June 2011
Author:raymond
Status:ok
Tags:
Comment:
Simplify link construction a bit.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r89800Self revert r89797: At least the block log link is wrong. I should not commit...raymond21:31, 9 June 2011

Status & tagging log