Merge pull request #361 from Robbt/fix/revert-db-setting-on-install

Fix - repoint to airtime-production-conf.php to resolve hardcoded values and broken install
This commit is contained in:
Lucas Bickel 2017-11-17 17:10:36 +01:00 committed by GitHub
commit 6bca9c8a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class MediaSetup extends Setup {
function setupMusicDirectory() {
try {
$_SERVER['AIRTIME_CONF'] = AIRTIME_CONF_TEMP_PATH;
Propel::init(AIRTIME_CONF_TEMP_PATH);
Propel::init(CONFIG_PATH . "airtime-conf-production.php");
$con = Propel::getConnection();
} catch(Exception $e) {
self::$message = "Failed to insert media folder; database isn't configured properly!";