From 13d8db0be4eda961d3086c05cd10af3e5eabf80a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 14 Aug 2017 17:05:59 +0300 Subject: [PATCH] Support affiliate partners --- app/Ninja/Repositories/AccountRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Ninja/Repositories/AccountRepository.php b/app/Ninja/Repositories/AccountRepository.php index bdb8aeecf8..8c409a7014 100644 --- a/app/Ninja/Repositories/AccountRepository.php +++ b/app/Ninja/Repositories/AccountRepository.php @@ -40,12 +40,12 @@ class AccountRepository $company->utm_content = Input::get('utm_content'); $company->referral_code = Session::get(SESSION_REFERRAL_CODE); - if (env('PROMO_CAMPAIGN') && hash_equals(Input::get('utm_campaign'), env('PROMO_CAMPAIGN'))) { + if (env('PROMO_CAMPAIGN') && hash_equals(Input::get('utm_campaign'), env('PROMO_CAMPAIGN'))) { $company->discount = .75; $company->promo_expires = date_create()->modify('14 days')->format('Y-m-d'); } - if (env('PARTNER_CAMPAIGN') && hash_equals(Input::get('utm_campaign'), env('PARTNER_CAMPAIGN'))) { + if (env('PARTNER_CAMPAIGN') && hash_equals(Input::get('utm_campaign'), env('PARTNER_CAMPAIGN'))) { $company->plan = PLAN_PRO; $company->plan_term = PLAN_TERM_YEARLY; $company->plan_price = PLAN_PRICE_PRO_MONTHLY;