Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
[lhc/web/wiklou.git] / includes / specials / SpecialNewimages.php
index 953efad..65d4f1d 100644 (file)
@@ -124,7 +124,7 @@ function wfSpecialNewimages( $par, $specialPage ) {
                $name = $s->img_name;
                $ut = $s->img_user_text;
 
-               $nt = Title::newFromText( $name, NS_IMAGE );
+               $nt = Title::newFromText( $name, NS_FILE );
                $ul = $sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
 
                $gallery->add( $nt, "$ul<br />\n<i>".$wgLang->timeanddate( $s->img_timestamp, true )."</i><br />\n" );