Index: branches/REL1_6/phase3/includes/SpecialRecentchanges.php |
— | — | @@ -459,7 +459,14 @@ |
460 | 460 | rcDaysLink( $limit, 14, $page, $more ) . ' | ' . |
461 | 461 | rcDaysLink( $limit, 30, $page, $more ) . |
462 | 462 | ( $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 ); |
464 | 471 | $note = wfMsg( 'rclinks', $cl, $dl, $shm ); |
465 | 472 | return $note; |
466 | 473 | } |