Fix creating an AtomicWriter instance
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 27 Nov 2017 20:11:11 +0000 (21:11 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 27 Nov 2017 20:11:11 +0000 (21:11 +0100)
wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php

index ee5499c8a238762ccbbfe8f6008351ef726c6735..0b09582aa9861d430e39ad68f4c30e560d4283a1 100755 (executable)
@@ -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']
                ]));