r84809 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84808‎ | r84809 | r84810 >
Date:18:46, 26 March 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r84356, don't pass title string, pass a title object
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryFilearchive.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryFilearchive.php
@@ -125,7 +125,8 @@
126126
127127 $file = array();
128128 $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 );
130131
131132 if ( $fld_sha1 ) {
132133 $file['sha1'] = wfBaseConvert( LocalRepo::getHashFromKey( $row->fa_storage_key ), 36, 16, 40 );
@@ -152,7 +153,7 @@
153154 $file['description'] = $row->fa_description;
154155 if ( isset( $prop['parseddescription'] ) ) {
155156 $file['parseddescription'] = $wgUser->getSkin()->formatComment(
156 - $row->fa_description, $row->fa_name );
 157+ $row->fa_description, $title );
157158 }
158159 }
159160 if ( $fld_metadata ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84356* (bug 27343) Add parseddescription to list=filearchivereedy22:54, 19 March 2011

Status & tagging log