From: Ariel T. Glenn Date: Sat, 6 Apr 2019 09:24:30 +0000 (+0300) Subject: for exports, make sure we compare page titles as strings only X-Git-Tag: 1.34.0-rc.0~2124^2 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=804b7f1f0faff301efd2aeff09e121609e77b96e;p=lhc%2Fweb%2Fwiklou.git for exports, make sure we compare page titles as strings only ...and not as numbers!! Also added strict compare for the namespaces field while we're in here. Bug: T220257 Change-Id: If68b79334188c2f3be5d254bea3c1e27d52c4a9f --- diff --git a/includes/export/WikiExporter.php b/includes/export/WikiExporter.php index 120632c365..e02cd8347c 100644 --- a/includes/export/WikiExporter.php +++ b/includes/export/WikiExporter.php @@ -469,8 +469,8 @@ class WikiExporter { protected function outputPageStreamBatch( $results, $lastRow ) { foreach ( $results as $row ) { if ( $lastRow === null || - $lastRow->page_namespace != $row->page_namespace || - $lastRow->page_title != $row->page_title ) { + $lastRow->page_namespace !== $row->page_namespace || + $lastRow->page_title !== $row->page_title ) { if ( $lastRow !== null ) { $output = ''; if ( $this->dumpUploads ) {