// Load settings from database; note we need autoload for this
Config::loadSettings();
+ self::fillConfigVoids();
self::verifyLoadedConfig();
self::initPlugins();
}
}
+ static function fillConfigVoids()
+ {
+ // special cases on empty configuration options
+ if (!common_config('thumbnail', 'dir')) {
+ common_config_set('thumbnail', 'dir', File::path('thumb'));
+ }
+ }
+
/**
* Verify that the loaded config is good. Not complete, but will
* throw exceptions on common configuration problems I hope.
if (!mkdir($dir)) {
throw new ConfigException('Could not create directory for '._ve($description).': '._ve($dir));
}
+ if (!chmod($dir, 0775)) {
+ common_log(LOG_WARNING, 'Could not chmod 0775 on directory for '._ve($description).': '._ve($dir));
+ }
}
if (!is_array(common_config('public', 'autosource'))) {