From f0d4f2a3e54ed578bd9cd9ef2b5c3bf2d509476b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 4 Oct 2012 18:11:22 +0000 Subject: [PATCH] Updated more parts to latest API --- inc/extensions/ext-signup.php | 2 +- inc/extensions/ext-sponsor.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/extensions/ext-signup.php b/inc/extensions/ext-signup.php index 2a5abca7bd..211697fd60 100644 --- a/inc/extensions/ext-signup.php +++ b/inc/extensions/ext-signup.php @@ -112,7 +112,7 @@ PRIMARY KEY (`id`)", addMemberMenuSql('main', 'signup', 'SignUp-Aktionen', 7); // Add entry to sponsor registry - addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('signup', 'N', '".GET_ADMIN_ID($_COOKIE['admin_login'])."', '".time()."')"); + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('signup', 'N', {%%pipe,getCurrentAdminId%%}, NOW())"); // Sponsor menu addSponsorMenuSql('actions', 'signup', 'SignUp-Aktion', 'N', 2); diff --git a/inc/extensions/ext-sponsor.php b/inc/extensions/ext-sponsor.php index 2a4d15c8db..98eb105a89 100644 --- a/inc/extensions/ext-sponsor.php +++ b/inc/extensions/ext-sponsor.php @@ -298,7 +298,7 @@ INDEX (`sponsor_id`)", // // Add default entries // - addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`,`is_active`,`admin_id`,`stamp_added`) VALUES ('sponsor','N',".getCurrentAdminId().",NOW())"); + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`,`is_active`,`admin_id`,`stamp_added`) VALUES ('sponsor', 'N', {%%pipe,getCurrentAdminId%%}, NOW())"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_action_convert` (`ext_name`,`conv_rate`,`conv_name`) VALUES ('sponsor',10,'Mails')"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Standard-Paket', 5, 1000.00000, '€')"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Spar-Paket', 1, 200.00000, '€')"); -- 2.39.5