From: Roland Häder Date: Wed, 4 Mar 2009 06:28:17 +0000 (+0000) Subject: Extensions sql_patches<->user now need each other X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6eae8cae327a4d2257b3d3dcdfd12eba7c016fea;p=mailer.git Extensions sql_patches<->user now need each other --- diff --git a/inc/databases.php b/inc/databases.php index 8f4a1d0961..08d8b170bd 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -98,7 +98,7 @@ define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision //define('CURR_SVN_REVISION', getActualVersion(0)); -define('CURR_SVN_REVISION', "813"); +define('CURR_SVN_REVISION', "814"); define('CURR_SVN_DATE' , getActualVersion(1)); define('CURR_SVN_VERSION' , getActualVersion(2)); diff --git a/inc/extensions/ext-sql_patches.php b/inc/extensions/ext-sql_patches.php index ff6e1fb670..b6e9fb8665 100644 --- a/inc/extensions/ext-sql_patches.php +++ b/inc/extensions/ext-sql_patches.php @@ -38,10 +38,10 @@ if (!defined('__SECURITY')) { } // Version number -EXT_SET_VERSION("0.6.1"); +EXT_SET_VERSION("0.6.2"); // Version history array (add more with , "0.1" and so on) -EXT_SET_VER_HISTORY(array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5", "0.3.6", "0.3.7", "0.3.8", "0.3.9", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.4.6", "0.4.7", "0.4.8", "0.4.9", "0.5.0", "0.5.1", "0.5.2", "0.5.3", "0.5.4", "0.5.5", "0.5.6", "0.5.7", "0.5.8", "0.5.9", "0.6.0", "0.6.1")); +EXT_SET_VER_HISTORY(array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5", "0.3.6", "0.3.7", "0.3.8", "0.3.9", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.4.6", "0.4.7", "0.4.8", "0.4.9", "0.5.0", "0.5.1", "0.5.2", "0.5.3", "0.5.4", "0.5.5", "0.5.6", "0.5.7", "0.5.8", "0.5.9", "0.6.0", "0.6.1", "0.6.2")); switch ($EXT_LOAD_MODE) { @@ -714,6 +714,14 @@ PRIMARY KEY (`filter_id`) // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Falsche Schreibweise korregiert."); break; + + case "0.6.2": // SQL queries for v0.6.2 + // Depends on refback extension + EXT_SET_UPDATE_DEPENDS("user"); + + // Update notes (these will be set as task text!) + EXT_SET_UPDATE_NOTES("Abhängigkeit von ext-user gesetzt."); + break; } break; diff --git a/inc/modules/admin/what-config_refid.php b/inc/modules/admin/what-config_refid.php index 7d91ef7304..c06e0bf8ac 100644 --- a/inc/modules/admin/what-config_refid.php +++ b/inc/modules/admin/what-config_refid.php @@ -57,6 +57,10 @@ if (IS_FORM_SENT()) { define('__DEF_RT_INDEX' , ""); define('__DEF_RT_REGISTER', " selected=\"selected\""); break; + + default: // Invalid config! + DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid refid_target %s detected.", getConfig('refid_target'))); + break; } // END - switch switch (getConfig('select_user_zero_refid')) { @@ -69,6 +73,12 @@ if (IS_FORM_SENT()) { define('__RAND_REFID_Y', ""); define('__RAND_REFID_N', " selected=\"selected\""); break; + + default: // Invalid config! + DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid select_user_zero_refid %s detected.", getConfig('select_user_zero_refid'))); + define('__RAND_REFID_Y', ""); + define('__RAND_REFID_N', ""); + break; } // END - switch // Prepare content diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 293578e3eb..8367de207e 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -2122,6 +2122,11 @@ function SET_SQLS ($SQLs) { $GLOBALS['sqls'] = (array) $SQLs; } +// Remover for SQLs array +function UNSET_SQLS () { + unset($GLOBALS['sqls']); +} + // Getter for SQLs array function GET_SQLS () { return $GLOBALS['sqls'];