1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Removed obsolete ALLOW_AUTO_FIELD_DEFS constant

This commit is contained in:
Nick Liu
2020-01-17 15:54:56 +01:00
parent 4321c1b944
commit ef34ef7ec8
2 changed files with 4 additions and 15 deletions

View File

@@ -25,14 +25,6 @@
* Always use $this->getConfig() method to avoid issues pointed above
*/
/*
Parameters related to auto-generation of field definitions on db_Insert() and db_Update()
*/
define('ALLOW_AUTO_FIELD_DEFS', TRUE); // Temporary so new functionality can be disabled if it causes problems
// Uses it's own cache directory now - see e_CACHE_DB
//define('e_DB_CACHE', e_CACHE);
if(defined('MYSQL_LIGHT'))
{
define('E107_DEBUG_LEVEL', 0);
@@ -927,7 +919,7 @@ class e_db_mysql implements e_db
// See if we need to auto-add field types array
if(!isset($arg['_FIELD_TYPES']) && ALLOW_AUTO_FIELD_DEFS)
if(!isset($arg['_FIELD_TYPES']))
{
$arg = array_merge($arg, $this->getFieldDefs($tableName));
}
@@ -1161,7 +1153,7 @@ class e_db_mysql implements e_db
if(!isset($arg['data'])) { return false; }
// See if we need to auto-add field types array
if(!isset($arg['_FIELD_TYPES']) && ALLOW_AUTO_FIELD_DEFS)
if(!isset($arg['_FIELD_TYPES']))
{
$arg = array_merge($arg, $this->getFieldDefs($tableName));
}