Fixed a couple of bugs in the new /provisioning/create API

This commit is contained in:
Albert Santoni 2015-02-18 12:21:15 -05:00
parent d2fae5adae
commit dcac7ab652
3 changed files with 53 additions and 44 deletions

View file

@ -35,7 +35,7 @@ require_once (APPLICATION_PATH."/logging/Logging.php");
Logging::setLogPath('/var/log/airtime/zendphp.log');
// We need to manually route because we can't load Zend without the database being initialized first.
if (strpos("/provisioning/create", $_SERVER["REDIRECT_URL"]) !== false) {
if (strpos($_SERVER["REQUEST_URI"], "/provisioning/create") !== false) {
$provisioningHelper = new ProvisioningHelper($CC_CONFIG["apiKey"][0]);
$provisioningHelper->createAction();
die();