X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=0418aa952c058b0f2ee5d431c83b3c88e4a86efc;hb=56931cd9321119dd37372bd16d6c552857e40066;hp=3d8855fdf2b466f0df7c287c9ef6fb62a2b07626;hpb=765cb0ae4b3c13bb213ac1fc6a5373ddbe6eeac9;p=mailer.git diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index 3d8855fdf2..0418aa952c 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -1,18 +1,22 @@ {OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data verwaltet."); + break; + } // END - switch break; - case "0.0.3": // SQL queries for v0.0.3 - $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` CHANGE `wernis_refid` `wernis_refid` INT(5) UNSIGNED ZEROFILL NOT NULL DEFAULT '00000'"; + case 'modify': // When the extension got modified + break; - // Update notes (these will be set as task text!) - $UPDATE_NOTES = "Spaltentyp von VARCHAR(6) auf BIGINT(5) geändert."; + case 'test': // For testing purposes break; - } - break; -case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. - break; + case 'init': // Do stuff when extension is initialized + // Init array + $GLOBALS['wernis_data'] = array(); + break; -default: // Do stuff when extension is loaded - // Init array - global $WERNIS; - $WERNIS = array(); - break; -} + default: // Unknown extension mode + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); + break; +} // END - switch -// +// [EOF] ?>