finally found the reason for the li bug, top a now in skin
[lhc/web/wiklou.git] / includes / SpecialNewpages.php
index 14c18a9..4368d28 100644 (file)
@@ -20,13 +20,12 @@ class NewPagesPage extends QueryPage {
        }
 
        function formatResult( $skin, $result ) {
-               global $wgLang,$wgUser;
-               $sk=$wgUser->getSkin();
+               global $wgLang;
                $u = $result->cur_user;
                $ut = $result->cur_user_text;
 
                $length = wfmsg( "nbytes", $wgLang->formatNum( $result->cur_length ) );
-               $c = $sk->formatComment($result->cur_comment );
+               $c = $skin->formatComment($result->cur_comment );
 
                if ( 0 == $u ) { # not by a logged-in user
                        $ul = $ut;