From d4c7131c9f92980848893837de24ca2337f8e61a Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Wed, 18 May 2022 19:15:51 -0400 Subject: [PATCH] fix(core): call to undefined method `RequestContext::getAction()` Bug: #459 --- includes/Partials/PageTools.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Partials/PageTools.php b/includes/Partials/PageTools.php index 835b34d1..c6b67257 100644 --- a/includes/Partials/PageTools.php +++ b/includes/Partials/PageTools.php @@ -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; } }