Skip to content
Snippets Groups Projects
Commit 6c8673fe authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix call to FatalException

parameters were in the wrong order
parent e998c9f1
No related branches found
No related tags found
No related merge requests found
......@@ -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?');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment