r89833 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89832‎ | r89833 | r89834 >
Date:16:48, 10 June 2011
Author:raymond
Status:resolved
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,11 +259,10 @@
260260 }
261261 # Block log link
262262 $tools[] = $sk->linkKnown(
263 - SpecialPage::getTitleFor( 'Log' ),
 263+ SpecialPage::getTitleFor( 'Log', 'block' ),
264264 wfMsgHtml( 'sp-contributions-blocklog' ),
265265 array(),
266266 array(
267 - 'type' => 'block',
268267 'page' => $userpage->getPrefixedText()
269268 )
270269 );
@@ -276,10 +275,8 @@
277276
278277 # Other logs link
279278 $tools[] = $sk->linkKnown(
280 - SpecialPage::getTitleFor( 'Log' ),
281 - wfMsgHtml( 'sp-contributions-logs' ),
282 - array(),
283 - array( 'user' => $username )
 279+ SpecialPage::getTitleFor( 'Log', $username ),
 280+ wfMsgHtml( 'sp-contributions-logs' )
284281 );
285282
286283 # Add link to deleted user contributions for priviledged users

Status & tagging log