X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2Fconfig%2FConfigManager.php;h=a401887c5367389e34785a8dd7d7c5c906238f41;hb=adc4aee80f7cd3242f65f0b316af2b560a64712c;hp=ff41772a73153d7c3bb1d477e58d2586c5a5cf93;hpb=649af5b501d2a90448242f53764ff693e9854039;p=github%2Fshaarli%2FShaarli.git diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index ff41772a..a401887c 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php @@ -20,6 +20,8 @@ class ConfigManager */ protected static $NOT_FOUND = 'NOT_FOUND'; + public static $DEFAULT_PLUGINS = array('qrcode'); + /** * @var string Config folder. */ @@ -37,6 +39,8 @@ class ConfigManager /** * Constructor. + * + * @param string $configFile Configuration file path without extension. */ public function __construct($configFile = 'data/config') { @@ -295,6 +299,7 @@ class ConfigManager $this->setEmpty('resource.log', 'data/log.txt'); $this->setEmpty('resource.update_check', 'data/lastupdatecheck.txt'); $this->setEmpty('resource.raintpl_tpl', 'tpl/'); + $this->setEmpty('resource.theme', 'default'); $this->setEmpty('resource.raintpl_tmp', 'tmp/'); $this->setEmpty('resource.thumbnails_cache', 'cache'); $this->setEmpty('resource.page_cache', 'pagecache'); @@ -306,7 +311,7 @@ class ConfigManager $this->setEmpty('general.header_link', '?'); $this->setEmpty('general.links_per_page', 20); - $this->setEmpty('general.enabled_plugins', array('qrcode')); + $this->setEmpty('general.enabled_plugins', self::$DEFAULT_PLUGINS); $this->setEmpty('updates.check_updates', false); $this->setEmpty('updates.check_updates_branch', 'stable');