]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-booking.php
Minor rewrites, cache destroyed on mailexchange auto-activation
[mailer.git] / inc / extensions / ext-booking.php
index 95d0e1537a0b884adc7d774bb82f84343a261345..73ea712ff29b8b5c6963992780b74182669646e8 100644 (file)
@@ -51,7 +51,7 @@ switch ($EXT_LOAD_MODE)
 case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called)
        // Configuration entries
        $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `booking_per_page` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
-       $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `booking_purge` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".($_CONFIG['one_day'] * 3)."";
+       $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `booking_purge` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('one_day') * 3)."";
 
        // Drop/create table for user bookings
        $SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_user_book`";
@@ -100,6 +100,9 @@ case "update": // Update an extension
                break;
        }
 
+case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+       break;
+
 default: // Do stuff when extension is loaded
        break;
 }