From abed5d10237c395e96817cf9229efbfa0ab6f48c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 30 Oct 2013 09:57:12 +0100 Subject: [PATCH] if SEEDDMS_CONFIG_FILE is set, it will be passed to Settings() --- inc/inc.Settings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/inc.Settings.php b/inc/inc.Settings.php index 34bbf1fae..49935cc34 100644 --- a/inc/inc.Settings.php +++ b/inc/inc.Settings.php @@ -47,7 +47,10 @@ if (file_exists("../inc/inc.Settings.old.php")) { } require_once('inc.ClassSettings.php'); -$settings = new Settings(); +if(defined("SEEDDMS_CONFIG_FILE")) + $settings = new Settings(SEEDDMS_CONFIG_FILE); +else + $settings = new Settings(); if(!defined("SEEDDMS_INSTALL") && file_exists(dirname($settings->_configFilePath)."/ENABLE_INSTALL_TOOL")) { die("SeedDMS won't run unless your remove the file ENABLE_INSTALL_TOOL from your configuration directory."); }