Added protection against fatal errors for AJAX

This commit is contained in:
Marcin Kurczewski 2014-08-31 14:08:19 +02:00
parent c83c609b51
commit 0889472bf3

View file

@ -1,6 +1,9 @@
<?php
namespace Szurubooru;
//if script fails prematurely, mark it as fail from advance
http_response_code(500);
final class Dispatcher
{
private $router;