From d9ed38ff4a646ed5f96f14b7b5ce0f5c1ed3bff2 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Thu, 14 Jul 2011 13:01:07 +0000 Subject: [PATCH] r91949 : EditWatchlist assumed that action was always empty for view --- includes/specials/SpecialEditWatchlist.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index 9255bc7581..a56cf75020 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -535,7 +535,9 @@ class SpecialEditWatchlist extends UnlistedSpecialPage { * @return int */ public static function getMode( $request, $par ) { - $mode = strtolower( $request->getVal( 'action', $par ) ); + $act = $request->getVal( 'action' ); + $mode = ( $act == 'view' ) ? $par : $act; + $mode = strtolower( $mode ); switch( $mode ) { case 'clear': case self::EDIT_CLEAR: -- 2.20.1