Take advantage of Title::isSpecial()

Change-Id: I0c5dbec63cdd109bd99d6a6fdd9c6dd1da182bd4
This commit is contained in:
Kunal Mehta 2018-04-15 16:37:33 -07:00 committed by Jdlrobson
parent 8bd72dc871
commit f3def0b8d2
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class MinervaTemplate extends BaseTemplate {
$title = $this->getSkin()->getTitle();
$this->isSpecialPage = $title->isSpecialPage();
$this->isSpecialMobileMenuPage = $this->isSpecialPage &&
$title->equals( SpecialPage::getTitleFor( 'MobileMenu' ) );
$title->isSpecial( 'MobileMenu' );
$this->isMainPage = $title->isMainPage();
Hooks::run( 'MinervaPreRender', [ $this ] );
$this->render( $this->data );