Take advantage of Title::isSpecial()
Change-Id: I0c5dbec63cdd109bd99d6a6fdd9c6dd1da182bd4
This commit is contained in:
parent
8bd72dc871
commit
f3def0b8d2
|
@ -38,7 +38,7 @@ class MinervaTemplate extends BaseTemplate {
|
||||||
$title = $this->getSkin()->getTitle();
|
$title = $this->getSkin()->getTitle();
|
||||||
$this->isSpecialPage = $title->isSpecialPage();
|
$this->isSpecialPage = $title->isSpecialPage();
|
||||||
$this->isSpecialMobileMenuPage = $this->isSpecialPage &&
|
$this->isSpecialMobileMenuPage = $this->isSpecialPage &&
|
||||||
$title->equals( SpecialPage::getTitleFor( 'MobileMenu' ) );
|
$title->isSpecial( 'MobileMenu' );
|
||||||
$this->isMainPage = $title->isMainPage();
|
$this->isMainPage = $title->isMainPage();
|
||||||
Hooks::run( 'MinervaPreRender', [ $this ] );
|
Hooks::run( 'MinervaPreRender', [ $this ] );
|
||||||
$this->render( $this->data );
|
$this->render( $this->data );
|
||||||
|
|
Loading…
Reference in New Issue