]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-menu.php
Menu entries moved to ext-user:
[mailer.git] / inc / extensions / ext-menu.php
index e923018d3e42d67bd9c79a362aaead06624be3d4..67991a4b55a8716d1147f51ef9c27115abde864d 100644 (file)
@@ -41,13 +41,13 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.0.3');
+setThisExtensionVersion('0.0.4');
 
-// 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'));
+// 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'));
 
 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
                // @TODO Convert menu-Id to one coding-standard. admin(edit|_add) => admin_menu_(edit|add), mem(edit|_add) => mem_menu_(edit|add)
                addAdminMenuSql('menu',NULL,'Menü-System','Alle drei Menü-System bearbeiten (Admin-, Mitglied- und Gast-Menü)',1);
@@ -95,10 +95,19 @@ switch (getExtensionMode()) {
 
                        case '0.0.3': // SQL queries for v0.0.3
                                // Change menu-string
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title` = 'Admin-Menü editieren' WHERE `what` = 'adminedit' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='Admin-Menü editieren' WHERE `what` = 'adminedit' LIMIT 1");
 
+                               // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Menüpunkt 'Vom Admin editieren' in 'Admin-Menü editieren' bei bereits bestehenden Installationen umändern.");
                                break;
+
+                       case '0.0.4': // SQL queries for v0.0.4
+                               // Change menu-string
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admin_menu` CHANGE `title` `title` VARCHAR(255) NOT NULL DEFAULT ''");
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("VARCHAR(50) ist zu kurz für Linktitel (wegen der dynamischen Anteile).");
+                               break;
                } // END - switch
                break;