From: Joshua Rüsweg Date: Thu, 10 Aug 2017 11:59:34 +0000 (+0200) Subject: Fix closing closed temp sitemap files X-Git-Tag: 3.1.0_Alpha_1~53 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d635472ecd71e72b3bbae616c93c17fd34454e54;p=GitHub%2FWoltLab%2FWCF.git Fix closing closed temp sitemap files 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 dfd36dfbc7..a5d118b583 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -166,10 +166,9 @@ class SitemapRebuildWorker extends AbstractWorker { // finish sitemap if (count($objectList) < $this->limit) { - $closeFile = true; if ($this->workerData['dataCount'] > 0) { $this->finishSitemap($this->sitemapObjects[$this->workerData['sitemap']]->objectType . '.xml'); - $closeFile = false; + $this->generateTmpFile(false); } // increment data @@ -179,8 +178,6 @@ class SitemapRebuildWorker extends AbstractWorker { if (count($this->sitemapObjects) <= $this->workerData['sitemap']) { $this->writeIndexFile(); - } else { - $this->generateTmpFile($closeFile); } }