Support for default settings when there is none provided by user was already in lib/appconfig.php But we were using the CoreConfig object always which queries the database; lets use the appConfig object so that if the value is missing in the database, we still have the default value to take care of the app.