http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56298

Revision: 56298
Author:   catrope
Date:     2009-09-14 12:57:37 +0000 (Mon, 14 Sep 2009)

Log Message:
-----------
(bug 18180) Special:Export ignores limit, dir, offset parameters. Patch by 
azliq7

Modified Paths:
--------------
    trunk/phase3/CREDITS
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/Export.php

Modified: trunk/phase3/CREDITS
===================================================================
--- trunk/phase3/CREDITS        2009-09-14 12:53:38 UTC (rev 56297)
+++ trunk/phase3/CREDITS        2009-09-14 12:57:37 UTC (rev 56298)
@@ -58,6 +58,7 @@
 == Patch Contributors ==
 * Agbad
 * Ahmad Sherif
+* Azliq7
 * Borislav Manolov
 * Brad Jorsch
 * Brent G

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2009-09-14 12:53:38 UTC (rev 56297)
+++ trunk/phase3/RELEASE-NOTES  2009-09-14 12:57:37 UTC (rev 56298)
@@ -498,6 +498,7 @@
 * (bug 20624) Installation no longer allows "qqq" as the chosen language
 * (bug 20634) The installer-created database user will now have CREATE TABLE 
   and ALTER TABLE rights so that upgrades will go more smoothly.
+* (bug 18180) Special:Export ignores limit, dir, offset parameters
 
 == API changes in 1.16 ==
 

Modified: trunk/phase3/includes/Export.php
===================================================================
--- trunk/phase3/includes/Export.php    2009-09-14 12:53:38 UTC (rev 56297)
+++ trunk/phase3/includes/Export.php    2009-09-14 12:57:37 UTC (rev 56298)
@@ -207,11 +207,8 @@
                        $opts = array( 'ORDER BY' => 'page_id ASC' );
                        $opts['USE INDEX'] = array();
                        $join = array();
-                       # Full history dumps...
-                       if( $this->history & WikiExporter::FULL ) {
-                               $join['revision'] = array('INNER 
JOIN','page_id=rev_page');
                        # Latest revision dumps...
-                       } elseif( $this->history & WikiExporter::CURRENT ) {
+                       if( $this->history & WikiExporter::CURRENT ) {
                                if( $this->list_authors && $cond != '' )  { // 
List authors, if so desired
                                        list($page,$revision) = 
$this->db->tableNamesN('page','revision');
                                        $this->do_list_authors( $page, 
$revision, $cond );
@@ -247,6 +244,9 @@
                                if( !empty( $this->history['limit'] ) ) {
                                        $opts['LIMIT'] = intval( 
$this->history['limit'] );
                                }
+                       # Full history dumps...
+                       } elseif( $this->history & WikiExporter::FULL ) {
+                               $join['revision'] = array('INNER 
JOIN','page_id=rev_page');
                        # Uknown history specification parameter?
                        } else {
                                wfProfileOut( __METHOD__ );



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to