1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 08:11:27 +02:00

Add method for checking debug mode

This commit is contained in:
Franz Liedke
2015-06-20 20:38:44 +02:00
parent f65830948c
commit 5dcc13ec11

View File

@@ -1,7 +1,5 @@
<?php namespace Flarum;
use DB;
class Core
{
public static function isInstalled()
@@ -9,6 +7,11 @@ class Core
return file_exists(base_path('../config.php'));
}
public static function inDebugMode()
{
return env('APP_DEBUG');
}
public static function config($key, $default = null)
{
if (! static::isInstalled()) {