* Respect read-only mode on block removals
[lhc/web/wiklou.git] / includes / PageHistory.php
index cc0fdf4..66ed592 100644 (file)
@@ -69,7 +69,7 @@ class PageHistory {
                  "rev_comment,rev_user_text,rev_timestamp,rev_minor_edit ".
                  "FROM $revision $use_index " .
                  "WHERE rev_page=$id " .
-                 "ORDER BY inverse_timestamp ".$db->limitResult($limitplus,$offset);
+                 "ORDER BY rev_timestamp DESC ".$db->limitResult($limitplus,$offset);
                $res = $db->query( $sql, $fname );
 
                $revs = $db->numRows( $res );
@@ -194,10 +194,7 @@ class PageHistory {
                $s .= $isminor ? ' <span class="minor">'.$message['minoreditletter'].'</span>': '' ;
 
 
-               if ( '' != $c && '*' != $c ) {
-                       $c = $this->mSkin->formatcomment( $c, $this->mTitle );
-                       $s .= " <em>($c)</em>";
-               }
+               $s .= $this->mSkin->commentBlock( $c, $this->mTitle );
                if ($notificationtimestamp && ($ts >= $notificationtimestamp)) {
                        $s .= wfMsg( 'updatedmarker' );
                }