r93770 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93769‎ | r93770 | r93771 >
Date:17:01, 2 August 2011
Author:reedy
Status:ok
Tags:
Comment:
MFT r91364
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php
@@ -544,7 +544,8 @@
545545 }
546546
547547 function chunkSize() {
548 - return 50;
 548+ global $oaiChunkSize;
 549+ return $oaiChunkSize;
549550 }
550551
551552 function baseUrl() {
Index: branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php
@@ -55,6 +55,13 @@
5656 */
5757 $oaiAuditDatabase = false;
5858
 59+/**
 60+ * Number of records to return in each ListRecords or ListIdentifiers request.
 61+ * Additional records will be available by making another request using the
 62+ * ResumptionToken returned.
 63+ */
 64+$oaiChunkSize = 50;
 65+
5966 $wgExtensionCredits['specialpage'][] = array(
6067 'path' => __FILE__,
6168 'name' => 'OAIRepository',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91364OAIRepo tweak: make the number of records returned in ListRecords requests co...brion18:40, 2 July 2011

Status & tagging log