r36907 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36906‎ | r36907 | r36908 >
Date:13:39, 2 July 2008
Author:demon
Status:old
Tags:
Comment:
(bug 13862) Add TOC to Special:SpecialPages.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/specials/SpecialSpecialpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialSpecialpages.php
@@ -48,6 +48,14 @@
4949 $groups['other'] = $other;
5050 }
5151
 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+
5260 /** Now output the HTML */
5361 foreach ( $groups as $group => $sortedPages ) {
5462 $middle = ceil( count($sortedPages)/2 );
Index: trunk/phase3/RELEASE-NOTES
@@ -178,6 +178,8 @@
179179 * Two new hooks, ExtendJSGlobalVars and wfMessageCacheReplace added
180180 * MediawikiPerformAction hook is now passed the Mediawiki object
181181 * 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.
182184
183185 === Bug fixes in 1.13 ===
184186

Follow-up revisions

RevisionCommit summaryAuthorDate
r37001Revert r36907, 36908 ("(bug 13862) Add TOC to Special:SpecialPages.")...brion19:59, 3 July 2008
r49268Re-add id's to special page groups (that I originally did in r36907 for the T...demon14:38, 7 April 2009

Status & tagging log