mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
- add _ADOdbPath to include_path
- new version 3.4.0 - output error if dir for configuration file could not be found
This commit is contained in:
parent
9240c4b2f7
commit
c6e0689cff
|
@ -88,7 +88,7 @@ function printCheckError($resCheck) { /* {{{ */
|
|||
* Load default settings + set
|
||||
*/
|
||||
define("LETODMS_INSTALL", "on");
|
||||
define("LETODMS_VERSION", "3.3.0");
|
||||
define("LETODMS_VERSION", "3.4.0");
|
||||
|
||||
require_once('../inc/inc.ClassSettings.php');
|
||||
|
||||
|
@ -97,6 +97,11 @@ $configDir = Settings::getConfigDir();
|
|||
/**
|
||||
* Check if ENABLE_INSTALL_TOOL exists in config dir
|
||||
*/
|
||||
if (!$configDir) {
|
||||
echo "Fatal error! I could not even find a configuration directory.";
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
|
||||
echo "For installation of LetoDMS, you must create the file conf/ENABLE_INSTALL_TOOL";
|
||||
exit;
|
||||
|
@ -135,6 +140,9 @@ if(!$settings->_contentDir) {
|
|||
}
|
||||
$settings->_httpRoot = $httpRoot;
|
||||
|
||||
if(isset($settings->_ADOdbPath))
|
||||
ini_set('include_path', $settings->_ADOdbPath. PATH_SEPARATOR .ini_get('include_path'));
|
||||
|
||||
/**
|
||||
* Include GUI + Language
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user