From: Sam Reed Date: Sat, 26 Mar 2011 18:46:15 +0000 (+0000) Subject: Followup r84356, don't pass title string, pass a title object X-Git-Tag: 1.31.0-rc.0~31176 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=d48986abc5ce309ed92668fdd9669653b3a09b6b;p=lhc%2Fweb%2Fwiklou.git Followup r84356, don't pass title string, pass a title object --- diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index e8ce31f370..5cde9b7650 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -125,7 +125,8 @@ class ApiQueryFilearchive extends ApiQueryBase { $file = array(); $file['name'] = $row->fa_name; - self::addTitleInfo( $file, Title::makeTitle( NS_FILE, $row->fa_name ) ); + $title = Title::makeTitle( NS_FILE, $row->fa_name ); + self::addTitleInfo( $file, $title ); if ( $fld_sha1 ) { $file['sha1'] = wfBaseConvert( LocalRepo::getHashFromKey( $row->fa_storage_key ), 36, 16, 40 ); @@ -152,7 +153,7 @@ class ApiQueryFilearchive extends ApiQueryBase { $file['description'] = $row->fa_description; if ( isset( $prop['parseddescription'] ) ) { $file['parseddescription'] = $wgUser->getSkin()->formatComment( - $row->fa_description, $row->fa_name ); + $row->fa_description, $title ); } } if ( $fld_metadata ) {