]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-order.php
Renamed templates, more usage of EL
[mailer.git] / inc / extensions / ext-order.php
index a7c72ed4a030c93a4d90e98c780e3fbac9c001dd..87b84ce3b43c9a8adbdda49125518a8991b4113a 100644 (file)
@@ -49,7 +49,7 @@ setExtensionVersionHistory(array('0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
                // SQL commands to run
-               addMemberMenuSql('order','order','Mailbuchung','N','Y',1);
+               addMemberMenuSql('order', 'order', 'Mailbuchung', 'N', 'Y', 1);
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -141,7 +141,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.2.3': // SQL queries for v0.2.3
-                               addConfigAddSql('order_min', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 10");
+                               addConfigAddSql('order_min', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 10');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Minimum an Empfänger pro Mailbuchung einstellbar. Standard: 10 Empfänger");
@@ -271,8 +271,8 @@ nicht die vom Mitglied eingegebene. Resultat: Das Script beschwerte sich, der Us
                                break;
 
                        case '0.4.6': // SQL queries for v0.4.6
-                               addMemberMenuSql('order',NULL,'Mailbuchungen','N','Y',3);
-                               addMemberMenuSql('order','order2','Framekiller-Mails','N','Y',2);
+                               addMemberMenuSql('order', NULL, 'Mailbuchungen', 'N', 'Y', 3);
+                               addMemberMenuSql('order', 'order2', 'Framekiller-Mails', 'N', 'Y', 2);
                                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='order', `sort`=1, `title`='Klick-Mails' WHERE `what`='order' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
@@ -314,8 +314,8 @@ INDEX (`pool_id`)
                                break;
 
                        case '0.5.2': // SQL queries for v0.5.2
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `test_text`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `test_subj`");
+                               addConfigDropSql('test_text');
+                               addConfigDropSql('test_subj');
                                addConfigAddSql('allow_url_in_text', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
                                addConfigAddSql('allow_url_in_subject', "ENUM('Y','N') NOT NULL DEFAULT 'N'");