API: an alternative "continue" value formatted as a URL-encoded snippet. Commented...
authorYuri Astrakhan <yurik@users.mediawiki.org>
Sun, 15 Jul 2007 06:56:54 +0000 (06:56 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Sun, 15 Jul 2007 06:56:54 +0000 (06:56 +0000)
includes/api/ApiQueryBase.php

index b327fa4..d9669b1 100644 (file)
@@ -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);
        }