From f9a5db81345161d1448aab180bef257cf937fb4e Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 5 Apr 2006 18:31:58 +0000 Subject: [PATCH] (bug 5461) Use of deprecated "showhideminor" in Special:Recentchangeslinked --- includes/SpecialRecentchanges.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 8668f4015a..70da5bf658 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -459,7 +459,14 @@ function rcDayLimitLinks( $days, $limit, $page='Recentchanges', $more='', $doall rcDaysLink( $limit, 14, $page, $more ) . ' | ' . rcDaysLink( $limit, 30, $page, $more ) . ( $doall ? ( ' | ' . rcDaysLink( $limit, 0, $page, $more ) ) : '' ); - $shm = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink ); + + $linkParts = array( 'minorLink' => 'minor', 'botLink' => 'bots', 'liuLink' => 'liu', 'patrLink' => 'patr', 'myselfLink' => 'mine' ); + foreach( $linkParts as $linkVar => $linkMsg ) { + if( $$linkVar != '' ) + $links[] = wfMsgHtml( 'rcshowhide' . $linkMsg, $$linkVar ); + } + + $shm = implode( ' | ', $links ); $note = wfMsg( 'rclinks', $cl, $dl, $shm ); return $note; } -- 2.20.1