From: Brad Jorsch Date: Mon, 15 Jul 2013 15:41:06 +0000 (-0400) Subject: API: Fix prop=imageinfo iicontinue X-Git-Tag: 1.31.0-rc.0~19193 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=72e9a3e4ad6de7ac947d977bb4d8e609bef88fff;p=lhc%2Fweb%2Fwiklou.git API: Fix prop=imageinfo iicontinue 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 --- diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22 index 9e05b07fdb..5e93c0f315 100644 --- a/RELEASE-NOTES-1.22 +++ b/RELEASE-NOTES-1.22 @@ -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=== diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index fedf860476..40041d86ff 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -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() {