X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions-functions.php;h=7e5895c8d415d79f5184591a22c0ea643fe19889;hp=ed9ead0d9f8e0117ffcc188d579a595a97183c19;hb=16b311c338bb4f8436e2ed9e76cb1cd5f3741640;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2 diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index ed9ead0d9f..7e5895c8d4 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -1116,7 +1116,7 @@ function addExtensionNotes ($ext_ver) { 'notes' => '{--INITIAL_RELEASE--}' ); } else { - // No update notes found! + // No update notes found $content = array( 'ver' => $ext_ver, 'notes' => '{--NO_UPDATE_NOTES--}' @@ -1288,7 +1288,7 @@ function isExtensionUpdateRunning ($ext_name) { foreach ($GLOBALS['ext_running_updates'] as $ext1=>$depends) { // Is it found? if (($ext1 == $ext_name) || ($isRunning === true)) { - // Found! + // found logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning)); $isRunning = true; break; @@ -1736,6 +1736,16 @@ function isExtensionFunctionFileReadable ($ext_name) { return ($GLOBALS['cache_array']['extension']['ext_func'][$ext_name] == 'Y'); } +// Adds a DROP TABLE statement if the requested tabled is there +function addDropTableSql ($table) { + // Is the table there? + if (isSqlTableCreated($table)) { + // Then add it, non-existing tables can be ignored because it will + // happen with every newly installed extension. + addExtensionSql('DROP TABLE `{?_MYSQL_PREFIX?}_' . $table . '`'); + } // END - if +} + // Adds an admin menu to the SQL queue of the menu entry is not found function addAdminMenuSql ($action, $what, $title, $descr, $sort) { // Now check if this menu is there