TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/319044
Change subject: Add default page specific classes to minerva skin ...................................................................... Add default page specific classes to minerva skin All our skins add these and they are useful for both scripts and styling. Not having them only in Minverva is annoying and inconsistent. Change-Id: I2446e729d93ab8870c139b8e71ebf6d20b0f11d4 --- M includes/skins/SkinMinerva.php 1 file changed, 3 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/44/319044/1 diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 47eac56..ef8cba1 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -240,10 +240,9 @@ * @return string */ public function getPageClasses( $title ) { - $className = $this->getMode(); - if ( $title->isMainPage() ) { - $className .= ' page-Main_Page '; - } elseif ( $title->isSpecialPage() ) { + $className = parent::getPageClasses(); + $className .= ' ' . $this->getMode(); + if ( $title->isSpecialPage() ) { $className .= ' mw-mf-special '; } -- To view, visit https://gerrit.wikimedia.org/r/319044 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2446e729d93ab8870c139b8e71ebf6d20b0f11d4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits