MediaWiki r13079 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r13078‎ | r13079 (on ViewVC)‎ | r13080 >
Date:00:39, 23 February 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 4970) Make category paging limits configurable
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -1562,6 +1562,11 @@
15631563 $wgCategoryMagicGallery = true;
15641564
15651565 /**
 1566+ * Paging limit for categories
 1567+ */
 1568+$wgCategoryPagingLimit = 200;
 1569+
 1570+/**
15661571 * Browser Blacklist for unicode non compliant browsers
15671572 * Contains a list of regexps : "/regexp/" matching problematic browsers
15681573 */
Index: trunk/phase3/includes/CategoryPage.php
@@ -64,7 +64,7 @@
6565 * @access private
6666 */
6767 function doCategoryMagic( $from = '', $until = '' ) {
68 - global $wgContLang,$wgUser, $wgCategoryMagicGallery;
 68+ global $wgContLang,$wgUser, $wgCategoryMagicGallery, $wgCategoryPagingLimit;
6969 $fname = 'CategoryPage::doCategoryMagic';
7070 wfProfileIn( $fname );
7171
@@ -88,7 +88,7 @@
8989 $pageCondition = '1 = 1';
9090 $flip = false;
9191 }
92 - $limit = 200;
 92+ $limit = $wgCategoryPagingLimit;
9393 $res = $dbr->select(
9494 array( 'page', 'categorylinks' ),
9595 array( 'page_title', 'page_namespace', 'page_len', 'cl_sortkey' ),
Index: trunk/phase3/RELEASE-NOTES
@@ -242,7 +242,6 @@
243243 * Restriction types now use restriction-* messages instead of ui messages
244244 * (bug 4685) Slovenian LanguageSl.php hardcodes project namespace
245245
246 -
247246 Parser:
248247 * (bug 2522) {{CURRENTDAY2}} now shows the current day number with two digits
249248 * (bug 3210) Fix Media: links with remote image URL path
@@ -649,6 +648,7 @@
650649 * Fixed and enhanced a little the Live Preview, which had been broken for some time
651650 * Added article size limit, $wgMaxArticleSize
652651 * (bug 4974) Don't follow redirected talk page on "new messages" link
 652+* (bug 4970) Make category paging limits configurable
653653
654654 === Caveats ===
655655

Follow-up revisions

Rev.Commit summaryAuthorDate
r13080(bug 4970) Make category paging limits configurablerobchurch01:15, 23 February 2006

Status & tagging log

  • 01:58, 13 October 2010 ^demon (talk | contribs) changed the status of r13079 [removed: new added: old]