on SJS Web Server with action paths, 'action' is always set. this caused WatchlistEd...
authorRiver Tarnell <river@users.mediawiki.org>
Thu, 8 May 2008 16:06:21 +0000 (16:06 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Thu, 8 May 2008 16:06:21 +0000 (16:06 +0000)
includes/WatchlistEditor.php

index 172cf4b..6a39acb 100644 (file)
@@ -431,7 +431,8 @@ class WatchlistEditor {
         * @return int
         */
        public static function getMode( $request, $par ) {
-               $mode = strtolower( $request->getVal( 'action', $par ) );
+               if (($mode = $par) === "")
+                       $mode = strtolower( $request->getVal( 'action', "" ) );
                switch( $mode ) {
                        case 'clear':
                                return self::EDIT_CLEAR;