From 8f9797239127bd0df942643c2e582473a282d1e6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 2 Aug 2004 07:57:02 +0000 Subject: [PATCH] Fix for [ 981176 ] Special:Undelete doesn't show the last comment --- includes/SpecialUndelete.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index c226aff192..41bd629bc0 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -117,13 +117,11 @@ class UndeleteForm { $row = $dbr->fetchObject( $ret ); $wgOut->addWikiText( wfMsg( "undeletehistory" ) . "\n
\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" ); -- 2.20.1