X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2Fconfig%2FConfigManager.php;h=717a038f7912fa2bc2b403d2d38a1101f6041238;hb=302662797cb5e8ac6579a99297ceae301f7927a6;hp=faf25426e613018ed06e8ad97b15d869cdc9ec19;hpb=a3724717ec37d4bd54dc117ef439c8a182157882;p=github%2Fshaarli%2FShaarli.git diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index faf25426..717a038f 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php @@ -1,8 +1,10 @@ getConfigFileExt()) && !$isLoggedIn) { @@ -362,17 +363,16 @@ class ConfigManager $this->setEmpty('security.open_shaarli', false); $this->setEmpty('security.allowed_protocols', ['ftp', 'ftps', 'magnet']); - $this->setEmpty('general.header_link', '?'); + $this->setEmpty('general.header_link', '/'); $this->setEmpty('general.links_per_page', 20); $this->setEmpty('general.enabled_plugins', self::$DEFAULT_PLUGINS); $this->setEmpty('general.default_note_title', 'Note: '); + $this->setEmpty('general.retrieve_description', true); + $this->setEmpty('general.enable_async_metadata', true); + $this->setEmpty('general.tags_separator', ' '); - $this->setEmpty('thumbnails.enabled', true); - $this->setEmpty('thumbnails.width', 120); - $this->setEmpty('thumbnails.height', 120); - - $this->setEmpty('updates.check_updates', false); - $this->setEmpty('updates.check_updates_branch', 'stable'); + $this->setEmpty('updates.check_updates', true); + $this->setEmpty('updates.check_updates_branch', 'latest'); $this->setEmpty('updates.check_updates_interval', 86400); $this->setEmpty('feed.rss_permalinks', true); @@ -385,17 +385,17 @@ class ConfigManager // default state of the 'remember me' checkbox of the login form $this->setEmpty('privacy.remember_user_default', true); - $this->setEmpty('thumbnail.enable_thumbnails', true); - $this->setEmpty('thumbnail.enable_localcache', true); - - $this->setEmpty('redirector.url', ''); - $this->setEmpty('redirector.encode_url', true); + $this->setEmpty('thumbnails.mode', Thumbnailer::MODE_ALL); + $this->setEmpty('thumbnails.width', '125'); + $this->setEmpty('thumbnails.height', '90'); $this->setEmpty('translation.language', 'auto'); $this->setEmpty('translation.mode', 'php'); $this->setEmpty('translation.extensions', []); - $this->setEmpty('plugins', array()); + $this->setEmpty('plugins', []); + + $this->setEmpty('formatter', 'markdown'); } /**