From c3ab200c8731a39254fecbae73ac262dca62239c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 7 Apr 2016 08:31:40 +0200 Subject: [PATCH] use SEEDDMS_CONFIG_FILE if set --- inc/inc.Settings.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/inc.Settings.php b/inc/inc.Settings.php index a766e0811..cc58e53b1 100644 --- a/inc/inc.Settings.php +++ b/inc/inc.Settings.php @@ -2,7 +2,7 @@ // MyDMS. Document Management System // Copyright (C) 2002-2005 Markus Westphal // Copyright (C) 2006-2008 Malcolm Cowe -// Copyright (C) 2010 Matteo Lucarelli +// Copyright (C) 2010 Matteo Lucarelli // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -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."); }