Followup r91871 per CR. Write back the actually executed action to . Ping r57415
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Tue, 12 Jul 2011 09:42:07 +0000 (09:42 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Tue, 12 Jul 2011 09:42:07 +0000 (09:42 +0000)
includes/Wiki.php

index 7440d5f..97572f1 100644 (file)
@@ -271,21 +271,21 @@ class MediaWiki {
 
                // Check for disabled actions
                if ( in_array( $action, $wgDisabledActions ) ) {
-                       return 'nosuchaction';
-               }
-
-               // Workaround for bug #20966: inability of IE to provide an action dependent
-               // on which submit button is clicked.
-               if ( $action === 'historysubmit' ) {
+                       $action = 'nosuchaction';
+               } elseif ( $action === 'historysubmit' ) {
+                       // Workaround for bug #20966: inability of IE to provide an action dependent
+                       // on which submit button is clicked.
                        if ( $request->getBool( 'revisiondelete' ) ) {
-                               return 'revisiondelete';
+                               $action = 'revisiondelete';
                        } else {
-                               return 'view';
+                               $action = 'view';
                        }
                } elseif ( $action == 'editredlink' ) {
-                       return 'edit';
+                       $action = 'edit';
                }
-
+               
+               // Write back the executed action
+               $request->setVal( 'action', $action );
                return $action;
        }