mirror of https://github.com/MarceauKa/shaark.git
🔖 1.2.6 🐛 Shaarli settings
This commit is contained in:
parent
65f8ab2212
commit
828f3af872
|
@ -15,7 +15,7 @@ use Spatie\Valuestore\Valuestore;
|
|||
class Shaarli
|
||||
{
|
||||
/** @var string VERSION */
|
||||
public const VERSION = '1.2.5';
|
||||
public const VERSION = '1.2.6';
|
||||
/** @var Application $app */
|
||||
protected $app;
|
||||
/** @var Valuestore $settings */
|
||||
|
@ -191,8 +191,8 @@ class Shaarli
|
|||
return $this->settings->get($key);
|
||||
}
|
||||
|
||||
if (array_key_exists($key, config('shaarli'))) {
|
||||
$this->settings->put($key, config('shaarli')[$key]);
|
||||
if (array_key_exists($key, $this->getSettingsConfig())) {
|
||||
$this->settings->put($key, $this->getSettingsConfig()[$key]['default']);
|
||||
return $this->settings->get($key);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
# Unreleased
|
||||
# 1.2.6
|
||||
|
||||
## Fixed
|
||||
|
||||
- Default settings
|
||||
|
||||
## Changed
|
||||
|
||||
|
|
Loading…
Reference in New Issue