Standard links, using subpage rather than the action parameter.
authorRotem Liss <rotem@users.mediawiki.org>
Sun, 21 Oct 2007 15:32:33 +0000 (15:32 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sun, 21 Oct 2007 15:32:33 +0000 (15:32 +0000)
includes/WatchlistEditor.php

index e03225a..e0eb1b1 100644 (file)
@@ -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 );
        }