]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-maintenance.php
Extension ext-grade continued, functions for menu SQLs simplified:
[mailer.git] / inc / extensions / ext-maintenance.php
index 689b719721281bac41391f2f6a6815e123fd4cee..748fd00097378a29d22d30a48703c4167d5fce9c 100644 (file)
@@ -43,16 +43,16 @@ if (!defined('__SECURITY')) {
 // Version number
 setThisExtensionVersion('0.0.6');
 
-// Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6'));
+// Version history array (add more with , '0.0.1' and so on)
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
-               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD maintenance ENUM('Y','N') NOT NULL DEFAULT 'N';");
+               addConfigAddSql('maintenance', "ENUM('Y','N') NOT NULL DEFAULT 'N';");
                addAdminMenuSql('setup','maintenance','Wartungsmodus','Schalten Sie den Wartungsmodus ein, nur wenn sehr schwerwiegende Fehler vorliegen, die Sie oder mxchange.org nicht schenll genug beheben können.',10);
                break;