From: Yuri Astrakhan Date: Sun, 15 Jul 2007 06:56:54 +0000 (+0000) Subject: API: an alternative "continue" value formatted as a URL-encoded snippet. Commented... X-Git-Tag: 1.31.0-rc.0~52087 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=accae4fe8e055430c8327395b4d0556f42742c34;p=lhc%2Fweb%2Fwiklou.git API: an alternative "continue" value formatted as a URL-encoded snippet. Commented at this point. --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index b327fa42ca..d9669b19bd 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -160,7 +160,12 @@ abstract class ApiQueryBase extends ApiBase { protected function setContinueEnumParameter($paramName, $paramValue) { - $msg = array( $this->encodeParamName($paramName) => $paramValue ); + $paramName = $this->encodeParamName($paramName); + $msg = array( $paramName => $paramValue ); + +// This is an alternative continue format as a part of the URL string +// ApiResult :: setContent($msg, $paramName . '=' . urlencode($paramValue)); + $this->getResult()->addValue('query-continue', $this->getModuleName(), $msg); }