r13514 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13513‎ | r13514 | r13515 >
Date:18:33, 5 April 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5461) Use of deprecated "showhideminor" in Special:Recentchangeslinked
Modified paths:
  • /branches/REL1_6/phase3/includes/SpecialRecentchanges.php (modified) (history)

Diff [purge]

Index: branches/REL1_6/phase3/includes/SpecialRecentchanges.php
@@ -459,7 +459,14 @@
460460 rcDaysLink( $limit, 14, $page, $more ) . ' | ' .
461461 rcDaysLink( $limit, 30, $page, $more ) .
462462 ( $doall ? ( ' | ' . rcDaysLink( $limit, 0, $page, $more ) ) : '' );
463 - $shm = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink );
 463+
 464+ $linkParts = array( 'minorLink' => 'minor', 'botLink' => 'bots', 'liuLink' => 'liu', 'patrLink' => 'patr', 'myselfLink' => 'mine' );
 465+ foreach( $linkParts as $linkVar => $linkMsg ) {
 466+ if( $$linkVar != '' )
 467+ $links[] = wfMsgHtml( 'rcshowhide' . $linkMsg, $$linkVar );
 468+ }
 469+
 470+ $shm = implode( ' | ', $links );
464471 $note = wfMsg( 'rclinks', $cl, $dl, $shm );
465472 return $note;
466473 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r13513(bug 5461) Use of deprecated "showhideminor" in Special:Recentchangeslinkedrobchurch18:31, 5 April 2006

Status & tagging log