1
0
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:
Toby Zerner
2015-05-27 16:25:44 +09:30
parent 696bfe5a07
commit 2741923714
16 changed files with 96 additions and 34 deletions

View File

@@ -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;
}