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
This commit is contained in:
parent
3ac4f416ce
commit
72e9a3e4ad
2 changed files with 3 additions and 1 deletions
|
|
@ -245,6 +245,8 @@ production.
|
||||||
entry values through ApiResult::content but directly. This changes the JSON
|
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
|
output from an array of objects with content in '*' to an array of strings
|
||||||
with the content.
|
with the content.
|
||||||
|
* (bug 51342) prop=imageinfo iicontinue now contains the dbkey, not the text
|
||||||
|
version of the title.
|
||||||
|
|
||||||
=== Languages updated in 1.22===
|
=== Languages updated in 1.22===
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -477,7 +477,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
|
||||||
if ( $start === null ) {
|
if ( $start === null ) {
|
||||||
$start = $img->getTimestamp();
|
$start = $img->getTimestamp();
|
||||||
}
|
}
|
||||||
return $img->getOriginalTitle()->getText() . '|' . $start;
|
return $img->getOriginalTitle()->getDBkey() . '|' . $start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAllowedParams() {
|
public function getAllowedParams() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue