mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
Finish admin permissions page and clean up everything
This commit is contained in:
@@ -29,6 +29,10 @@ class DatabaseSettingsRepository implements SettingsRepository
|
||||
|
||||
public function set($key, $value)
|
||||
{
|
||||
$this->database->table('config')->where('key', $key)->update(['value' => $value]);
|
||||
$query = $this->database->table('config')->where('key', $key);
|
||||
|
||||
$method = $query->exists() ? 'update' : 'insert';
|
||||
|
||||
$query->$method(compact('key', 'value'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user