mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-27 16:39:59 +00:00
Handle 'prefix' when 'action=edit', even if another extension overrides action
Bug: T337436 Change-Id: Idbd248ac9731fe2082e1557dfddbf39a112ceac7
This commit is contained in:
parent
ce9adfdf4a
commit
9f823d72a8
|
@ -96,7 +96,9 @@ class InputBoxHooks implements
|
|||
$request,
|
||||
$wiki
|
||||
) {
|
||||
if ( $output->getActionName() !== 'edit' && $request->getRawVal( 'veaction' ) !== 'edit' ) {
|
||||
// In order to check for 'action=edit' in URL parameters, even if another extension overrides
|
||||
// the action, we must not use getActionName() here. (T337436)
|
||||
if ( $request->getRawVal( 'action' ) !== 'edit' && $request->getRawVal( 'veaction' ) !== 'edit' ) {
|
||||
// not our problem
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue