From: Brion Vibber Date: Tue, 25 Nov 2003 19:35:21 +0000 (+0000) Subject: Fix cur revision for multi-version export X-Git-Tag: 1.1.0~83 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=fb0d4449eab6de9026490e1b0e42a6cf9ce383a3;p=lhc%2Fweb%2Fwiklou.git Fix cur revision for multi-version export --- 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 );