diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index c748927b2..c6418cf26 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -199,6 +199,8 @@ class Settings { /* {{{ */ var $_showMissingTranslations = false; // Extra Path to additional software, will be added to include path var $_extraPath = null; + // do not check version of database + var $_doNotCheckDBVersion = false; // DB-Driver used by adodb (see adodb-readme) var $_dbDriver = "mysql"; // DB-Server @@ -456,6 +458,7 @@ class Settings { /* {{{ */ $this->_dbDatabase = strval($tab["dbDatabase"]); $this->_dbUser = strval($tab["dbUser"]); $this->_dbPass = strval($tab["dbPass"]); + $this->_doNotCheckDBVersion = Settings::boolVal($tab["doNotCheckVersion"]); // XML Path: /configuration/system/smtp $node = $xml->xpath('/configuration/system/smtp'); @@ -768,6 +771,7 @@ class Settings { /* {{{ */ $this->setXMLAttributValue($node, "dbDatabase", $this->_dbDatabase); $this->setXMLAttributValue($node, "dbUser", $this->_dbUser); $this->setXMLAttributValue($node, "dbPass", $this->_dbPass); + $this->setXMLAttributValue($node, "doNotCheckVersion", $this->_doNotCheckVersion); // XML Path: /configuration/system/smtp $node = $this->getXMLNode($xml, '/configuration/system', 'smtp'); diff --git a/inc/inc.DBInit.php b/inc/inc.DBInit.php index c44c27854..1519dd4e0 100644 --- a/inc/inc.DBInit.php +++ b/inc/inc.DBInit.php @@ -47,7 +47,7 @@ if(isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) { $dms = new SeedDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir); -if(!$dms->checkVersion()) { +if(!$settings->_doNotCheckDBVersion && !$dms->checkVersion()) { echo "Database update needed."; exit; }