mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-12 00:59:46 +00:00
fix(core): call to undefined method RequestContext::getAction()
Bug: #459
This commit is contained in:
parent
08ddb60bb6
commit
d4c7131c9f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue