From: Brion Vibber Date: Mon, 2 Aug 2004 07:57:02 +0000 (+0000) Subject: Fix for [ 981176 ] Special:Undelete doesn't show the last comment X-Git-Tag: 1.5.0alpha1~2538 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=8f9797239127bd0df942643c2e582473a282d1e6;p=lhc%2Fweb%2Fwiklou.git Fix for [ 981176 ] Special:Undelete doesn't show the last comment --- 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" );