Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -125,7 +125,8 @@ |
126 | 126 | |
127 | 127 | $file = array(); |
128 | 128 | $file['name'] = $row->fa_name; |
129 | | - self::addTitleInfo( $file, Title::makeTitle( NS_FILE, $row->fa_name ) ); |
| 129 | + $title = Title::makeTitle( NS_FILE, $row->fa_name ); |
| 130 | + self::addTitleInfo( $file, $title ); |
130 | 131 | |
131 | 132 | if ( $fld_sha1 ) { |
132 | 133 | $file['sha1'] = wfBaseConvert( LocalRepo::getHashFromKey( $row->fa_storage_key ), 36, 16, 40 ); |
— | — | @@ -152,7 +153,7 @@ |
153 | 154 | $file['description'] = $row->fa_description; |
154 | 155 | if ( isset( $prop['parseddescription'] ) ) { |
155 | 156 | $file['parseddescription'] = $wgUser->getSkin()->formatComment( |
156 | | - $row->fa_description, $row->fa_name ); |
| 157 | + $row->fa_description, $title ); |
157 | 158 | } |
158 | 159 | } |
159 | 160 | if ( $fld_metadata ) { |