API: Fix prop=imageinfo iicontinue
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 15 Jul 2013 15:41:06 +0000 (11:41 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 15 Jul 2013 15:41:06 +0000 (11:41 -0400)
The iicontinue value needs to contain the dbkey, not the text version of
the title, as the dbkey version is what is being used for comparison
internally.

Bug: 51342
Change-Id: I88d99681fd601543c1d7c824c391ce272143c2e1

RELEASE-NOTES-1.22
includes/api/ApiQueryImageInfo.php

index 9e05b07..5e93c0f 100644 (file)
@@ -245,6 +245,8 @@ production.
   entry values through ApiResult::content but directly. This changes the JSON
   output from an array of objects with content in '*' to an array of strings
   with the content.
+* (bug 51342) prop=imageinfo iicontinue now contains the dbkey, not the text
+  version of the title.
 
 === Languages updated in 1.22===
 
index fedf860..40041d8 100644 (file)
@@ -477,7 +477,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                if ( $start === null ) {
                        $start = $img->getTimestamp();
                }
-               return $img->getOriginalTitle()->getText() . '|' . $start;
+               return $img->getOriginalTitle()->getDBkey() . '|' . $start;
        }
 
        public function getAllowedParams() {