Merge "Replace Action::getActionName by IContextSource::getActionName"

This commit is contained in:
jenkins-bot 2022-04-19 18:11:25 +00:00 committed by Gerrit Code Review
commit 065f3409b5
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();