allow Airtime environment to be accessed from CLI

-fixed
This commit is contained in:
Martin Konecny 2012-09-05 17:34:12 -04:00
parent dad1cf32c9
commit b6b4e25a37
1 changed files with 1 additions and 0 deletions

View File

@ -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");