From: Chad Horohoe Date: Wed, 2 Jul 2008 13:39:22 +0000 (+0000) Subject: (bug 13862) Add TOC to Special:SpecialPages. X-Git-Tag: 1.31.0-rc.0~46807 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=cb99c4105342da4cdef1e649c6b45074b9ca4750;p=lhc%2Fweb%2Fwiklou.git (bug 13862) Add TOC to Special:SpecialPages. --- 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 );