Page MenuHomePhabricator

ExportPatch2.patch

Authored By
bzimport
Nov 21 2014, 10:32 PM
Size
1 KB
Referenced Files
None
Subscribers
None

ExportPatch2.patch

Index: Export.php
===================================================================
--- Export.php (revision 56220)
+++ Export.php (working copy)
@@ -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__ );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5087
Default Alt Text
ExportPatch2.patch (1 KB)

Event Timeline