diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index 47dc69165..15cb6060d 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -85,6 +85,8 @@ class Settings { /* {{{ */ var $_dropFolderDir = null; // Where the checked out files are located var $_checkOutDir = null; + // Create checkout dir if it doesn't exists + var $_createCheckOutDir = false; // Where the stop word file is located var $_stopWordsFile = null; // enable/disable lucene fulltext search @@ -375,6 +377,7 @@ class Settings { /* {{{ */ $this->_luceneDir = strval($tab["luceneDir"]); $this->_dropFolderDir = strval($tab["dropFolderDir"]); $this->_checkOutDir = strval($tab["checkOutDir"]); + $this->_createCheckOutDir = Settings::boolVal($tab["createCheckOutDir"]); $this->_logFileEnable = Settings::boolVal($tab["logFileEnable"]); $this->_logFileRotation = strval($tab["logFileRotation"]); $this->_enableLargeFileUpload = Settings::boolVal($tab["enableLargeFileUpload"]); @@ -660,6 +663,7 @@ class Settings { /* {{{ */ $this->setXMLAttributValue($node, "luceneDir", $this->_luceneDir); $this->setXMLAttributValue($node, "dropFolderDir", $this->_dropFolderDir); $this->setXMLAttributValue($node, "checkOutDir", $this->_checkOutDir); + $this->setXMLAttributValue($node, "createCheckOutDir", $this->_createCheckOutDir); $this->setXMLAttributValue($node, "logFileEnable", $this->_logFileEnable); $this->setXMLAttributValue($node, "logFileRotation", $this->_logFileRotation); $this->setXMLAttributValue($node, "enableLargeFileUpload", $this->_enableLargeFileUpload); diff --git a/op/op.Settings.php b/op/op.Settings.php index b3c544db6..6c7d3724c 100644 --- a/op/op.Settings.php +++ b/op/op.Settings.php @@ -96,6 +96,7 @@ if ($action == "saveSettings") $settings->_extraPath = $_POST["extraPath"]; $settings->_dropFolderDir = $_POST["dropFolderDir"]; $settings->_checkOutDir = $_POST["checkOutDir"]; + $settings->_createCheckOutDir = getBoolValue("createCheckOutDir"); $settings->_logFileEnable = getBoolValue("logFileEnable"); $settings->_logFileRotation = $_POST["logFileRotation"]; $settings->_enableLargeFileUpload = getBoolValue("enableLargeFileUpload"); diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 914e57d38..64c3df226 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -55,7 +55,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
- + _configFilePath)) { print "
"; @@ -294,6 +294,10 @@ if(!is_writeable($settings->_configFilePath)) { : + "> + : + _createCheckOutDir) echo "checked" ?> /> + "> : _logFileEnable) echo "checked" ?> />