Move rewRevisionFromEditComplete call down till after page rows set
[lhc/web/wiklou.git] / includes / WatchlistEditor.php
index 6a39acb..4f64b78 100644 (file)
@@ -4,7 +4,7 @@
  * Provides the UI through which users can perform editing
  * operations on their watchlist
  *
- * @addtogroup Watchlist
+ * @ingroup Watchlist
  * @author Rob Church <robchur@gmail.com>
  */
 class WatchlistEditor {
@@ -431,8 +431,7 @@ class WatchlistEditor {
         * @return int
         */
        public static function getMode( $request, $par ) {
-               if (($mode = $par) === "")
-                       $mode = strtolower( $request->getVal( 'action', "" ) );
+               $mode = strtolower( $request->getVal( 'action', $par ) );
                switch( $mode ) {
                        case 'clear':
                                return self::EDIT_CLEAR;