From: Brion Vibber Date: Tue, 27 Jun 2006 22:45:40 +0000 (+0000) Subject: * Save null edit when importing pages through Special:Import X-Git-Tag: 1.31.0-rc.0~56565 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=5baebec3d349cb8adcb6fd9c84d1b54fa2431024;p=lhc%2Fweb%2Fwiklou.git * Save null edit when importing pages through Special:Import --- 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( "