From: Joshua Rüsweg Date: Thu, 10 Aug 2017 12:09:14 +0000 (+0200) Subject: Fix closing files on splitted sitemaps X-Git-Tag: 3.1.0_Alpha_1~49^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1cbbd9297d2b09f7acd33b70a1e07679ee12379;p=GitHub%2FWoltLab%2FWCF.git Fix closing files on splitted sitemaps See #2286 --- diff --git a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php index ccec277ea4..790ed3a047 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -159,7 +159,7 @@ class SitemapRebuildWorker extends AbstractWorker { if ($this->workerData['dataCount'] + $this->limit > self::SITEMAP_OBJECT_LIMIT) { $this->finishSitemap($this->sitemapObjects[$this->workerData['sitemap']]->objectType . '_' . $this->workerData['sitemapLoopCount'] . '.xml'); - $this->generateTmpFile(); + $this->generateTmpFile(false); $this->workerData['dataCount'] = 0; }