Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5537
ExportPatch2.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:32 PM
2014-11-21 22:32:06 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
ExportPatch2.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5087
Default Alt Text
ExportPatch2.patch (1 KB)
Attached To
Mode
T20180: Special:Export ignores parameters limit, dir and offset
Attached
Detach File
Event Timeline
Log In to Comment