]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-booking.php
Renamed functions to make it more clear, ext-coupon continued:
[mailer.git] / inc / extensions / ext-booking.php
index aa0f8f1ee2547f5bcb4978af55e1d6eaf7414585..4988be1bd67728cc1952fab8ec09405f92a01130 100644 (file)
@@ -52,12 +52,12 @@ enableExtensionProductive(false);
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
                // Configuration entries
-               addConfigAddSql('booking_per_page', "TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
-               addConfigAddSql('booking_purge', "BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getOneDay() * 3)."");
+               addConfigAddSql('booking_per_page', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 10');
+               addConfigAddSql('booking_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 3));
 
                // Drop/create table for user bookings
                addDropTableSql('user_book');
-               addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_user_book`(
+               addCreateTableSql('user_book', "(
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `subject` VARCHAR(255) NOT NULL DEFAULT 'missing',
@@ -74,7 +74,7 @@ PRIMARY KEY (`id`)
                addAdminMenuSql('user','list_booking','Kontoauszüge','Kontoauszüge aller Ihrer Mitglieder oder eines einzelnen Mitgliedes anzeigen.',10);
 
                // Member menu
-               addMemberMenuSql('main','booking','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Kontoauszug','N','Y',5);
+               addMemberMenuSql('main', 'booking', '{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Kontoauszug', 'N', 'Y', 5);
 
                // Add the filters
                registerFilter('post_add_points', 'ADD_BOOKING_RECORD', false, true, isExtensionDryRun());