Fix issue that when the General settings are disabled, then the settings should be read from the config file rather than the DB.
Fix issue that when the General settings are disabled, then the settings should be read from the config file rather than the DB.