r24111 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24110‎ | r24111 | r24112 >
Date:06:56, 15 July 2007
Author:yurik
Status:old
Tags:
Comment:
API: an alternative "continue" value formatted as a URL-encoded snippet. Commented at this point.
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryBase.php
@@ -160,7 +160,12 @@
161161
162162 protected function setContinueEnumParameter($paramName, $paramValue) {
163163
164 - $msg = array( $this->encodeParamName($paramName) => $paramValue );
 164+ $paramName = $this->encodeParamName($paramName);
 165+ $msg = array( $paramName => $paramValue );
 166+
 167+// This is an alternative continue format as a part of the URL string
 168+// ApiResult :: setContent($msg, $paramName . '=' . urlencode($paramValue));
 169+
165170 $this->getResult()->addValue('query-continue', $this->getModuleName(), $msg);
166171 }
167172

Follow-up revisions

RevisionCommit summaryAuthorDate
r24215Merged revisions 24095-24212 via svnmerge from...david21:19, 17 July 2007

Status & tagging log