summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-04-27 21:58:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-04-27 21:58:31 (GMT)
commit19f9810fb09309ea59e0b72a3e059d884ae7f122 (patch)
tree8e98e8396b93eb89dc7847c163b638665f6282e5
parenta69a107a3597eb2b31458593a415fcbccf0eda8b (diff)
Marked all subpages of the main page as main page too.
-rw-r--r--Toha.skin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Toha.skin.php b/Toha.skin.php
index e4cb89a..2c7ee8b 100644
--- a/Toha.skin.php
+++ b/Toha.skin.php
@@ -62,7 +62,7 @@ class SkinToha extends SkinTemplate {
$list = parent::getPageClasses( $title );
- if ( $title->isMainPage() )
+ if ( $title->isMainPage() || $title->isSubpageOf( Title::newMainPage() ) )
$list .= ' main_page';
return $list;