* (bug 27205) aiprop=metadata and aiprop=parsedcomment need help text
* Add a amtitle param to meta=allmessages
* (bug 25832) query=allimages now outputs ns/title as well
+* (bug 27199) Thumbnail urls can be fetched for old files as well
=== Languages updated in 1.18 ===
}
break;
}
+
+ // Check if we can make the requested thumbnail
+ $this->validateThumbParams( $img, $thumbParams );
// Get information about the current version first
// Check that the current version is within the start-end boundaries
)
{
$gotOne = true;
- $this->validateThumbParams( $img, $thumbParams );
+
$fit = $this->addPageSubItem( $pageId,
self::getInfo( $img, $prop, $result, $thumbParams ) );
if ( !$fit ) {
break;
}
$fit = $this->addPageSubItem( $pageId,
- self::getInfo( $oldie, $prop, $result ) );
+ self::getInfo( $oldie, $prop, $result, $thumbParams ) );
if ( !$fit ) {
if ( count( $pageIds[NS_IMAGE] ) == 1 ) {
$this->setContinueEnumParameter( 'start',
}
}
if ( isset( $prop['url'] ) ) {
- if ( !is_null( $thumbParams ) && !$file->isOld() ) {
+ if ( !is_null( $thumbParams ) ) {
$mto = $file->transform( $thumbParams );
if ( $mto && !$mto->isError() ) {
$vals['thumburl'] = wfExpandUrl( $mto->getUrl() );
$vals['thumbmime'] = $thumbFile->getMimeType();
}
}
+ if ( $mto && $mto->isError() ) {
+ $this->setWarning( 'Error creating thumbnail for ' . $file->getName .
+ ': ' . $mto->toText() );
+ }
}
$vals['url'] = $file->getFullURL();
$vals['descriptionurl'] = wfExpandUrl( $file->getDescriptionUrl() );