r15510 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15509‎ | r15510 | r15511 >
Date:19:45, 10 July 2006
Author:hashar
Status:old
Tags:
Comment:
Use constructor for image object
Modified paths:
  • /trunk/extensions/SpecialFileList/SpecialFilelist.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SpecialFileList/SpecialFilelist.php
@@ -179,7 +179,7 @@
180180 $ut = $s->img_user_text;
181181
182182 $nt = Title::newFromText( $name, NS_IMAGE );
183 - $img = Image::newFromTitle( $nt );
 183+ $img = new Image( $nt );
184184 $ul = $this->sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
185185
186186 $gallery->add( $img, "$ul<br />\n<i>".$wgLang->timeanddate( $s->img_timestamp, true )."</i><br />\n" );