From: Rotem Liss Date: Sun, 21 Oct 2007 15:32:33 +0000 (+0000) Subject: Standard links, using subpage rather than the action parameter. X-Git-Tag: 1.31.0-rc.0~51106 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=ee65466ba1d52a096707bd26747ebefceb4923c7;p=lhc%2Fweb%2Fwiklou.git Standard links, using subpage rather than the action parameter. --- 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 ); }