Fixed Billing::GetClientInstanceId()

This commit is contained in:
Albert Santoni 2015-03-05 18:22:04 -05:00
parent 181db7617a
commit 8cdecff022
1 changed files with 4 additions and 1 deletions
airtime_mvc/application/common

View File

@ -19,7 +19,10 @@ class Billing
//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'];
$instanceId = $CC_CONFIG['rabbitmq']['user'];
if (!is_numeric($instanceId)) {
throw new Exception("Invalid instance id in " . __FUNCTION__ . ": " . $instanceId);
}
return $instanceId;
}