Parameters in wrong order, used wrong where conditions
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Sep 2004 06:28:59 +0000 (06:28 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Sep 2004 06:28:59 +0000 (06:28 +0000)
includes/SpecialExport.php

index 24c8dff..c2ccbe8 100644 (file)
@@ -94,8 +94,8 @@ function page2xml( $page, $curonly, $full = false ) {
                if( !$curonly ) {
                        $res = $dbr->select( 'old', array( 'old_id as id','old_timestamp as timestamp', 
                                'old_user as user', 'old_user_text as user_text', 'old_comment as comment', 
-                               'old_text as text', 'old_flags as flags' ), $title->curCond(), 
-                               array( 'ORDER BY' => 'old_timestamp' ), $fname
+                               'old_text as text', 'old_flags as flags' ), $title->oldCond(), 
+                               $fname, array( 'ORDER BY' => 'old_timestamp' )
                        );
 
                        while( $s2 = $dbr->fetchObject( $res ) ) {