From 72e9a3e4ad6de7ac947d977bb4d8e609bef88fff Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 15 Jul 2013 11:41:06 -0400 Subject: [PATCH] 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 --- RELEASE-NOTES-1.22 | 2 ++ includes/api/ApiQueryImageInfo.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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() { -- 2.20.1