fix(core): call to undefined method RequestContext::getAction()

Bug: #459
This commit is contained in:
alistair3149 2022-05-18 19:15:51 -04:00
parent 08ddb60bb6
commit d4c7131c9f
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -25,6 +25,7 @@ declare( strict_types=1 );
namespace Citizen\Partials;
use Action;
use Exception;
use ExtensionRegistry;
use MediaWiki\MediaWikiServices;
@ -169,7 +170,7 @@ final class PageTools extends Partial {
}
} else {
// < MW 1.38
if ( $skin->getContext()->getAction() !== 'view' ) {
if ( Action::getActionName( $skin->getContext() ) !== 'view' ) {
return false;
}
}