Handle 'prefix' when 'action=edit', even if another extension overrides action

Bug: T337436
Change-Id: Idbd248ac9731fe2082e1557dfddbf39a112ceac7
(cherry picked from commit 9f823d72a8)
This commit is contained in:
Bartosz Dziewoński 2023-05-25 00:00:49 +02:00 committed by Bartosz Dziewoński
parent ce9adfdf4a
commit 41711f861f

View file

@ -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;
}