From 6c8673feabd1c9a708d254e378e69712a340f043 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Tue, 27 Nov 2018 19:46:06 +0100
Subject: [PATCH] fix call to FatalException

parameters were in the wrong order
---
 inc/Action/Sitemap.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/Action/Sitemap.php b/inc/Action/Sitemap.php
index 025c5153c..10b1377a0 100644
--- a/inc/Action/Sitemap.php
+++ b/inc/Action/Sitemap.php
@@ -29,7 +29,7 @@ class Sitemap extends AbstractAction {
         global $conf;
 
         if($conf['sitemap'] < 1 || !is_numeric($conf['sitemap'])) {
-            throw new FatalException(404, 'Sitemap generation is disabled');
+            throw new FatalException('Sitemap generation is disabled', 404);
         }
 
         $sitemap = \Sitemapper::getFilePath();
@@ -59,7 +59,7 @@ class Sitemap extends AbstractAction {
             exit;
         }
 
-        throw new FatalException(500, 'Could not read the sitemap file - bad permissions?');
+        throw new FatalException('Could not read the sitemap file - bad permissions?');
     }
 
 }
-- 
GitLab