@@ 40-46 (lines=7) @@ | ||
37 | $request = $this->getRequest(); |
|
38 | $actionName = $request->getVal( 'action', 'view' ); |
|
39 | // TODO: Shouldn't need to copy-paste this code from Action::getActionName! |
|
40 | if ( $actionName === 'historysubmit' ) { |
|
41 | if ( $request->getBool( 'revisiondelete' ) ) { |
|
42 | $actionName = 'revisiondelete'; |
|
43 | } elseif ( $request->getBool( 'editchangetags' ) ) { |
|
44 | $actionName = 'editchangetags'; |
|
45 | } |
|
46 | } |
|
47 | ||
48 | if ( isset( self::$actionToSpecialPageMapping[$actionName] ) ) { |
|
49 | return $actionName; |
@@ 136-142 (lines=7) @@ | ||
133 | // Workaround for bug #20966: inability of IE to provide an action dependent |
|
134 | // on which submit button is clicked. |
|
135 | if ( $actionName === 'historysubmit' ) { |
|
136 | if ( $request->getBool( 'revisiondelete' ) ) { |
|
137 | $actionName = 'revisiondelete'; |
|
138 | } elseif ( $request->getBool( 'editchangetags' ) ) { |
|
139 | $actionName = 'editchangetags'; |
|
140 | } else { |
|
141 | $actionName = 'view'; |
|
142 | } |
|
143 | } elseif ( $actionName == 'editredlink' ) { |
|
144 | $actionName = 'edit'; |
|
145 | } |