X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-country.php;h=733fc6c6213a30ecdd636adea56c1a60e5c3f59c;hb=5ef42cb239e9225f160f5963a718f14bc70a1866;hp=cdf0382a34eeaaa643785eee699ff75ff08f743b;hpb=b0ed0547ba277e815ca38b3333b191149a88019c;p=mailer.git diff --git a/inc/extensions/ext-country.php b/inc/extensions/ext-country.php index cdf0382a34..733fc6c621 100644 --- a/inc/extensions/ext-country.php +++ b/inc/extensions/ext-country.php @@ -63,7 +63,7 @@ UNIQUE INDEX (`code`)", 'Country codes and their full-length descriptions'); // Insert first (Germany) country - addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (code, descr, is_active) VALUES ('DE','Deutschland','Y')"); + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (`code`, `descr`, `is_active`) VALUES ('DE','Deutschland','Y')"); // Admin menu addAdminMenuSql('country', NULL, 'Ländercodes verwalten','Stellen Sie hier Ländercodes ein, damit auch internationale Mitglieder sich zu Ihrem {OPEN_CONFIG}mt_word{CLOSE_CONFIG} anmelden können.', 8); @@ -73,7 +73,7 @@ UNIQUE INDEX (`code`)", addExtensionDependency('user'); // Add entry to user table - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `country_code` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1"); + addExtensionAddTableColumnSql('user_data', 'country_code', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 1'); break; case 'remove': // Do stuff when removing extension @@ -82,7 +82,7 @@ UNIQUE INDEX (`code`)", addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='country'"); // Unregister filter - unregisterFilter(__FILE__, __LINE__, 'pre_user_registration', 'COUNTRY_USER_REGISTRATION_ADD_SQL_COLUMNS', true, isExtensionDryRun()); + unregisterFilter(__FILE__, __LINE__, 'pre_user_registration', 'COUNTRY_USER_REGISTRATION_ADD_SQL_COLUMNS', TRUE, isExtensionDryRun()); break; case 'activate': // Do stuff when admin activates this extension @@ -119,7 +119,7 @@ UNIQUE INDEX (`code`)", case '0.0.5': // SQL queries for v0.0.5 // Register a filter - registerFilter(__FILE__, __LINE__, 'pre_user_registration', 'COUNTRY_USER_REGISTRATION_ADD_SQL_COLUMNS', false, true, isExtensionDryRun()); + registerFilter(__FILE__, __LINE__, 'pre_user_registration', 'COUNTRY_USER_REGISTRATION_ADD_SQL_COLUMNS', FALSE, TRUE, isExtensionDryRun()); // This depends on ext-register addExtensionDependency('register');