1
0
mirror of https://github.com/flarum/core.git synced 2025-10-10 06:24:26 +02:00

Some fixes to get along with the new bootstrapping

This commit is contained in:
Franz Liedke
2015-06-30 23:29:52 +02:00
parent 31effe943e
commit 6e7cb1ff0e
3 changed files with 50 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ class Core
{
public static function isInstalled()
{
return file_exists(base_path('../config.php'));
return app()->bound('flarum.config');
}
public static function inDebugMode()
@@ -18,7 +18,7 @@ class Core
return $default;
}
if (is_null($value = app('db')->table('config')->where('key', $key)->pluck('value'))) {
if (is_null($value = app('flarum.db')->table('config')->where('key', $key)->pluck('value'))) {
$value = $default;
}