From accae4fe8e055430c8327395b4d0556f42742c34 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sun, 15 Jul 2007 06:56:54 +0000 Subject: [PATCH] API: an alternative "continue" value formatted as a URL-encoded snippet. Commented at this point. --- includes/api/ApiQueryBase.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.20.1