From 38d587bcfe5154a1c718227471763f08d0564568 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Mon, 27 Nov 2017 21:11:11 +0100 Subject: [PATCH] Fix creating an AtomicWriter instance --- .../files/lib/system/worker/SitemapRebuildWorker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php index ee5499c8a2..0b09582aa9 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -249,7 +249,7 @@ class SitemapRebuildWorker extends AbstractWorker { * @param boolean $closeFile Close a previously opened handle. */ protected function writeIndexFile($closeFile = true) { - $file = new AtomicWriter(self::getSitemapPath() . 'sitemap.xml', 'wb'); + $file = new AtomicWriter(self::getSitemapPath() . 'sitemap.xml'); $file->write(WCF::getTPL()->fetch('sitemapIndex', 'wcf', [ 'sitemaps' => $this->workerData['sitemaps'] ])); -- 2.20.1