Should probably override this later using the global settings variable
This commit is contained in:
snipe 2016-11-28 22:38:11 -08:00
parent 6bb5555a73
commit cc943e22db

View file

@ -49,11 +49,16 @@ class Setting extends Model
{ {
static $static_cache = null; static $static_cache = null;
if (Schema::hasTable('settings')) {
if (!$static_cache) { if (!$static_cache) {
$static_cache = Setting::first(); $static_cache = Setting::first();
} }
return $static_cache; return $static_cache;
} }
return false;
}
public static function setupCompleted() public static function setupCompleted()
{ {