From 5baebec3d349cb8adcb6fd9c84d1b54fa2431024 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 27 Jun 2006 22:45:40 +0000 Subject: [PATCH] * Save null edit when importing pages through Special:Import --- RELEASE-NOTES | 1 + includes/SpecialImport.php | 61 +++++++++++++++++++++++++++++++++----- languages/Messages.php | 4 ++- 3 files changed, 58 insertions(+), 8 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9379699a8d..fc15553206 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -584,6 +584,7 @@ Some default configuration options have changed: pages with more than $wgExportMaxHistory revisions are excluded from export when history is requested. * Fix transwiki import of pages with space in name +* Save null edit when importing pages through Special:Import == Compatibility == diff --git a/includes/SpecialImport.php b/includes/SpecialImport.php index 65ae089763..8a121ee013 100644 --- a/includes/SpecialImport.php +++ b/includes/SpecialImport.php @@ -151,7 +151,7 @@ function wfSpecialImport( $page = '' ) { */ class ImportReporter { function __construct( $importer, $upload, $interwiki ) { - $importer->setPageCallback( array( $this, 'reportPage' ) ); + $importer->setPageOutCallback( array( $this, 'reportPage' ) ); $this->mPageCount = 0; $this->mIsUpload = $upload; $this->mInterwiki = $interwiki; @@ -162,23 +162,40 @@ class ImportReporter { $wgOut->addHtml( "