X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignAPIRepo.php;h=d7241e962553fee5c2b069c03614d6855a10c9f5;hb=42fe7284cd78988f745a2f0f6a33e4921699b8dc;hp=f898bb6aff4182de5d17cd219f5d244363192abe;hpb=eee8ee0b41b607445cd50b0057e982fc02340fa5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index f898bb6aff..d7241e9625 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -50,7 +50,6 @@ class ForeignAPIRepo extends FileRepo { */ protected static $imageInfoProps = array( 'url', - 'thumbnail', 'timestamp', ); @@ -218,7 +217,11 @@ class ForeignAPIRepo extends FileRepo { if ( $data && isset( $data['query']['pages'] ) ) { foreach ( $data['query']['pages'] as $info ) { if ( isset( $info['imageinfo'][0] ) ) { - return $info['imageinfo'][0]; + $return = $info['imageinfo'][0]; + if ( isset( $info['pageid'] ) ) { + $return['pageid'] = $info['pageid']; + } + return $return; } } } @@ -499,7 +502,7 @@ class ForeignAPIRepo extends FileRepo { /** * Like a Http:get request, but with custom User-Agent. - * @see Http:get + * @see Http::get * @param string $url * @param string $timeout * @param array $options