Revert billing client ID change

This commit is contained in:
Albert Santoni 2015-03-05 17:45:07 -05:00
parent 181db7617a
commit df48de607b
1 changed files with 4 additions and 4 deletions

View File

@ -14,12 +14,12 @@ class Billing
/** Get the Airtime instance ID of the instance the customer is currently viewing. */ /** Get the Airtime instance ID of the instance the customer is currently viewing. */
public static function getClientInstanceId() public static function getClientInstanceId()
{ {
#$currentProduct = Billing::getClientCurrentAirtimeProduct(); $currentProduct = Billing::getClientCurrentAirtimeProduct();
#return $currentProduct["id"]; return $currentProduct["id"];
//XXX: Major hack attack. Since this function gets called often, rather than querying WHMCS //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. // we're just going to extract it from airtime.conf since it's the same as the rabbitmq username.
$CC_CONFIG = Config::getConfig(); //$CC_CONFIG = Config::getConfig();
$instanceId = $CC_CONFIG['rabbitmq']['username']; //$instanceId = $CC_CONFIG['rabbitmq']['username'];
return $instanceId; return $instanceId;
} }