From b6b4e25a37fdc4d624add3e23a7a5f436787d2f4 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 5 Sep 2012 17:34:12 -0400 Subject: [PATCH] allow Airtime environment to be accessed from CLI -fixed --- airtime_mvc/public/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/airtime_mvc/public/index.php b/airtime_mvc/public/index.php index 2827b3835..062e2aed2 100644 --- a/airtime_mvc/public/index.php +++ b/airtime_mvc/public/index.php @@ -40,6 +40,7 @@ $application = new Zend_Application( APPLICATION_PATH . '/configs/application.ini' ); +$sapi_type = php_sapi_name(); if (substr($sapi_type, 0, 3) == 'cli') { set_include_path(APPLICATION_PATH . PATH_SEPARATOR . get_include_path()); require_once("Bootstrap.php");