fix vars and reporting

This commit is contained in:
flash 2016-11-06 23:19:35 +01:00
parent feea8de29f
commit 5115d05ada
4 changed files with 11 additions and 9 deletions

View file

@ -38,13 +38,13 @@ class ExceptionHandler
*/
public static function exception(Throwable $ex)
{
$report = config('dev.report_host');
$report = strlen(config('dev.report_host')) > 0;
if ($report !== null) {
if ($report) {
self::report($ex, $report);
}
self::view($ex, $report !== null);
self::view($ex, $report);
}
/**

View file

@ -14,7 +14,7 @@
; ; sqlite
; driver = sqlite
; database = sakura.sq3
; database = sakura.db3
; ; Although the option exists, setting a table prefix for sqlite breaks some migration related things.
; prefix =

View file

@ -14,13 +14,13 @@
<p>
The page you are looking for experienced a severe explosion.
</p>
{% if reported %}
{% if reported is defined and reported %}
<p>
The developers have been notified of this issue, sorry for the inconvenience!
</p>
{% endif %}
<hr>
{% if message %}
{% if message is defined %}
<h2>
{{ message }}
</h2>

View file

@ -15,9 +15,11 @@
The page you are looking for is temporarily unavailable.
</p>
<hr>
<h2>
{{ message }}
</h2>
{% if message is defined %}
<h2>
{{ message }}
</h2>
{% endif %}
<h3>
HTTP 503 - Service unavailable
<br>