mirror of
https://github.com/flarum/core.git
synced 2025-10-10 22:44:25 +02:00
Improvements to change/forgot password
This commit is contained in:
@@ -11,6 +11,10 @@ class Core
|
||||
|
||||
public static function config($key, $default = null)
|
||||
{
|
||||
if (! static::isInstalled()) {
|
||||
return $default;
|
||||
}
|
||||
|
||||
if (is_null($value = DB::table('config')->where('key', $key)->pluck('value'))) {
|
||||
$value = $default;
|
||||
}
|
||||
|
Reference in New Issue
Block a user