Optional thumbnail generation by client request, using thumb.php. This removes any...
[lhc/web/wiklou.git] / includes / SpecialNewimages.php
index f738348..27628d8 100644 (file)
@@ -86,11 +86,11 @@ function wfSpecialNewimages() {
 
                $nt = Title::newFromText( $name, NS_IMAGE );
                $img = Image::newFromTitle( $nt );
-               $ul = $sk->makeLink( $wgContLang->getNsText( Namespace::getUser() ) . ":{$ut}", $ut );
+               $ul = $sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
 
-               $gallery->add( $img, $ul.'<br /><i>'.$wgLang->timeanddate( $s->img_timestamp, true ).'</i><br />' );
+               $gallery->add( $img, "$ul<br />\n<i>".$wgLang->timeanddate( $s->img_timestamp, true )."</i><br />\n" );
                
-               $timestamp = wfTImestamp( TS_MW, $s->img_timestamp );
+               $timestamp = wfTimestamp( TS_MW, $s->img_timestamp );
                if( empty( $firstTimestamp ) ) {
                        $firstTimestamp = $timestamp;
                }
@@ -118,7 +118,7 @@ function wfSpecialNewimages() {
        /**
         * Paging controls...
         */
-       $now = wfTimestamp( TS_MW );
+       $now = wfTimestampNow();
        $date = $wgLang->timeanddate( $now );
        $dateLink = $sk->makeKnownLinkObj( $titleObj, wfMsg( 'rclistfrom', $date ), 'from=' . $now );