From df48de607b552971514bdf5a1a516a9d39e47393 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 5 Mar 2015 17:45:07 -0500 Subject: [PATCH] Revert billing client ID change --- airtime_mvc/application/common/Billing.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/airtime_mvc/application/common/Billing.php b/airtime_mvc/application/common/Billing.php index 6753f2326..b1a2f8a1f 100644 --- a/airtime_mvc/application/common/Billing.php +++ b/airtime_mvc/application/common/Billing.php @@ -14,12 +14,12 @@ class Billing /** Get the Airtime instance ID of the instance the customer is currently viewing. */ public static function getClientInstanceId() { - #$currentProduct = Billing::getClientCurrentAirtimeProduct(); - #return $currentProduct["id"]; + $currentProduct = Billing::getClientCurrentAirtimeProduct(); + return $currentProduct["id"]; //XXX: Major hack attack. Since this function gets called often, rather than querying WHMCS // we're just going to extract it from airtime.conf since it's the same as the rabbitmq username. - $CC_CONFIG = Config::getConfig(); - $instanceId = $CC_CONFIG['rabbitmq']['username']; + //$CC_CONFIG = Config::getConfig(); + //$instanceId = $CC_CONFIG['rabbitmq']['username']; return $instanceId; }