X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2Fconfig%2FConfigManager.php;h=679a75b3bf2523eda94f9ba52b04edb84d48c717;hb=3c66e56435359dc678048193e8ee239d06f79b64;hp=ff41772a73153d7c3bb1d477e58d2586c5a5cf93;hpb=0c4c7ae818336d5b0f94562e551ca1a3f34d3435;p=github%2Fshaarli%2FShaarli.git diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index ff41772a..679a75b3 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php @@ -1,9 +1,5 @@ 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 +307,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'); @@ -361,7 +362,7 @@ class ConfigManager /** * Exception used if a mandatory field is missing in given configuration. */ -class MissingFieldConfigException extends Exception +class MissingFieldConfigException extends \Exception { public $field; @@ -380,7 +381,7 @@ class MissingFieldConfigException extends Exception /** * Exception used if an unauthorized attempt to edit configuration has been made. */ -class UnauthorizedConfigException extends Exception +class UnauthorizedConfigException extends \Exception { /** * Construct exception.