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:
commit
6bca9c8a6d
|
@ -104,7 +104,7 @@ class MediaSetup extends Setup {
|
||||||
function setupMusicDirectory() {
|
function setupMusicDirectory() {
|
||||||
try {
|
try {
|
||||||
$_SERVER['AIRTIME_CONF'] = AIRTIME_CONF_TEMP_PATH;
|
$_SERVER['AIRTIME_CONF'] = AIRTIME_CONF_TEMP_PATH;
|
||||||
Propel::init(AIRTIME_CONF_TEMP_PATH);
|
Propel::init(CONFIG_PATH . "airtime-conf-production.php");
|
||||||
$con = Propel::getConnection();
|
$con = Propel::getConnection();
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
self::$message = "Failed to insert media folder; database isn't configured properly!";
|
self::$message = "Failed to insert media folder; database isn't configured properly!";
|
||||||
|
|
Loading…
Reference in New Issue