From cb99c4105342da4cdef1e649c6b45074b9ca4750 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 2 Jul 2008 13:39:22 +0000 Subject: [PATCH] (bug 13862) Add TOC to Special:SpecialPages. --- RELEASE-NOTES | 2 ++ includes/specials/SpecialSpecialpages.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5e91aafe5e..081978e3da 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -178,6 +178,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Two new hooks, ExtendJSGlobalVars and wfMessageCacheReplace added * MediawikiPerformAction hook is now passed the Mediawiki object * Added blank special page Special:BlankPage for benchmarking, etc. +* (bug 13862) Specialpages now has a horizontal TOC if there's three or more + groups. === Bug fixes in 1.13 === diff --git a/includes/specials/SpecialSpecialpages.php b/includes/specials/SpecialSpecialpages.php index ca91ad514b..a331510dc7 100644 --- a/includes/specials/SpecialSpecialpages.php +++ b/includes/specials/SpecialSpecialpages.php @@ -48,6 +48,14 @@ function wfSpecialSpecialpages() { $groups['other'] = $other; } + if ( count( $groups ) >= 3 ) { + $wgOut->addHTML(''); + } + /** Now output the HTML */ foreach ( $groups as $group => $sortedPages ) { $middle = ceil( count($sortedPages)/2 ); -- 2.20.1