Replace Action::getActionName by IContextSource::getActionName

Change-Id: I41bb15527e5ff9296a53205608c596291d485876
This commit is contained in:
Umherirrender 2022-04-15 23:03:40 +02:00
parent 58b6831e4d
commit d0ac534749
1 changed files with 1 additions and 3 deletions

View File

@ -24,7 +24,6 @@
namespace Vector;
use Action;
use ExtensionRegistry;
use Html;
use Linker;
@ -166,8 +165,7 @@ abstract class SkinVector extends SkinMustache {
* @return bool
*/
private function canHaveLanguages(): bool {
$action = Action::getActionName( $this->getContext() );
if ( $action !== 'view' ) {
if ( $this->getContext()->getActionName() !== 'view' ) {
return false;
}
$title = $this->getTitle();