🔖 1.2.6 🐛 Shaarli settings

This commit is contained in:
MarceauKa 2019-09-28 18:22:52 +02:00
parent 65f8ab2212
commit 828f3af872
2 changed files with 8 additions and 4 deletions

View File

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

View File

@ -1,4 +1,8 @@
# Unreleased
# 1.2.6
## Fixed
- Default settings
## Changed