From ee65466ba1d52a096707bd26747ebefceb4923c7 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sun, 21 Oct 2007 15:32:33 +0000 Subject: [PATCH] Standard links, using subpage rather than the action parameter. --- includes/WatchlistEditor.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index e03225a301..e0eb1b1e49 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -481,11 +481,9 @@ class WatchlistEditor { */ public static function buildTools( $skin ) { $tools = array(); - $self = SpecialPage::getTitleFor( 'Watchlist' ); - $modes = array( 'view' => '', 'edit' => 'edit', 'raw' => 'raw', 'clear' => 'clear' ); - foreach( $modes as $mode => $action ) { - $action = $action ? "action={$action}" : ''; - $tools[] = $skin->makeKnownLinkObj( $self, wfMsgHtml( "watchlisttools-{$mode}" ), $action ); + $modes = array( 'view' => false, 'edit' => 'edit', 'raw' => 'raw', 'clear' => 'clear' ); + foreach( $modes as $mode => $subpage ) { + $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Watchlist', $subpage ), wfMsgHtml( "watchlisttools-{$mode}" ) ); } return implode( ' | ', $tools ); } -- 2.20.1