Fix for [ 981176 ] Special:Undelete doesn't show the last comment
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 2 Aug 2004 07:57:02 +0000 (07:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 2 Aug 2004 07:57:02 +0000 (07:57 +0000)
includes/SpecialUndelete.php

index c226aff..41bd629 100644 (file)
@@ -117,13 +117,11 @@ class UndeleteForm {
                $row = $dbr->fetchObject( $ret );
                $wgOut->addWikiText( wfMsg( "undeletehistory" ) . "\n<hr>\n" . $row->ar_text );
 
-               # Get remaining revisions
+               # List all stored revisions
                $sql = "SELECT ar_minor_edit,ar_timestamp,ar_user,ar_user_text,ar_comment
                  FROM archive WHERE ar_namespace={$namespace} AND ar_title='" . $dbr->strencode( $title ) .
                  "' ORDER BY ar_timestamp DESC";
                $ret = $dbr->query( $sql );
-               # Ditch first row
-               $row = $dbr->fetchObject( $ret );
 
                $titleObj = Title::makeTitle( NS_SPECIAL, "Undelete" );
                $action = $titleObj->escapeLocalURL( "action=submit" );