Do not add an empty class=''
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 13 May 2008 18:51:46 +0000 (18:51 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 13 May 2008 18:51:46 +0000 (18:51 +0000)
includes/SpecialNewpages.php

index 98572df..7c71f7e 100644 (file)
@@ -244,9 +244,9 @@ class NewPagesForm {
                $ulink = $this->skin->userLink( $result->rc_user, $result->rc_user_text ) . ' ' .
                        $this->skin->userToolLinks( $result->rc_user, $result->rc_user_text );
                $comment = $this->skin->commentBlock( $result->rc_comment );
-               $css = $this->patrollable( $result ) ? 'not-patrolled' : '';
+               $css = $this->patrollable( $result ) ? " class='not-patrolled'" : '';
 
-               return "<li class='$css'>{$time} {$dm}{$plink} ({$hist}) {$dm}[{$length}] {$dm}{$ulink} {$comment}</li>\n";
+               return "<li{$css}>{$time} {$dm}{$plink} ({$hist}) {$dm}[{$length}] {$dm}{$ulink} {$comment}</li>\n";
        }
 
        /**