$this->setStatus();
if ( isset( $this->respHeaders['content-length'] ) ) {
- if ( strlen( $this->content ) < $this->respHeaders['content-length'] ) {
+ if ( strlen( $this->content ) < $this->getResponseHeader( 'content-length' ) ) {
$this->status->fatal( 'http-truncated-body' );
}
}
*/
static function newFromTitle( Title $title, $repo ) {
$data = $repo->fetchImageQuery( array(
- 'titles' => 'File:' . $title->getDBKey(),
- 'iiprop' => self::getProps(),
- 'prop' => 'imageinfo',
+ 'titles' => 'File:' . $title->getDBKey(),
+ 'iiprop' => self::getProps(),
+ 'prop' => 'imageinfo',
'iimetadataversion' => MediaHandler::getMetadataVersion()
) );