From fb0d4449eab6de9026490e1b0e42a6cf9ce383a3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 25 Nov 2003 19:35:21 +0000 Subject: [PATCH] Fix cur revision for multi-version export --- includes/SpecialExport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 33248cc2df..4b8a2c89ea 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -69,8 +69,8 @@ function page2xml( $page, $curonly, $full = false ) { "WHERE old_namespace=$ns AND old_title='$t' ORDER BY old_timestamp"; $res = wfQuery( $sql, DB_READ ); - while( $s = wfFetchObject( $res ) ) { - $xml .= revision2xml( $s, $full, false ); + while( $s2 = wfFetchObject( $res ) ) { + $xml .= revision2xml( $s2, $full, false ); } } $xml .= revision2xml( $s, $full, true ); -- 2.20.1