| Index: trunk/phase3/includes/specials/SpecialSpecialpages.php |
| — | — | @@ -48,6 +48,14 @@ |
| 49 | 49 | $groups['other'] = $other; |
| 50 | 50 | } |
| 51 | 51 | |
| | 52 | + if ( count( $groups ) >= 3 ) { |
| | 53 | + $wgOut->addHTML('<ul id="filetoc">'); |
| | 54 | + foreach( $groups as $group => $pages ) { |
| | 55 | + $wgOut->addHTML('<li><a href="#' . $group . '">' . wfMsgHtml("specialpages-group-$group") . '</a></li>'); |
| | 56 | + } |
| | 57 | + $wgOut->addHTML('</ul>'); |
| | 58 | + } |
| | 59 | + |
| 52 | 60 | /** Now output the HTML */ |
| 53 | 61 | foreach ( $groups as $group => $sortedPages ) { |
| 54 | 62 | $middle = ceil( count($sortedPages)/2 ); |
| Index: trunk/phase3/RELEASE-NOTES |
| — | — | @@ -178,6 +178,8 @@ |
| 179 | 179 | * Two new hooks, ExtendJSGlobalVars and wfMessageCacheReplace added |
| 180 | 180 | * MediawikiPerformAction hook is now passed the Mediawiki object |
| 181 | 181 | * Added blank special page Special:BlankPage for benchmarking, etc. |
| | 182 | +* (bug 13862) Specialpages now has a horizontal TOC if there's three or more |
| | 183 | + groups. |
| 182 | 184 | |
| 183 | 185 | === Bug fixes in 1.13 === |
| 184 | 186 | |