Error handling for if propel isn't found / composer wasn't run

This commit is contained in:
Albert Santoni 2014-11-26 18:04:46 -05:00
parent 8fbe7dd649
commit 670a63df87
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,10 @@ require_once __DIR__."/configs/conf.php";
$CC_CONFIG = Config::getConfig();
require_once __DIR__."/configs/ACL.php";
require_once 'propel/propel1/runtime/lib/Propel.php';
if (!@include_once('propel/propel1/runtime/lib/Propel.php'))
{
die('Error: Propel not found. Did you install Airtime\'s third-party dependencies with composer? (Check the README.)');
}
Propel::init(__DIR__."/configs/airtime-conf-production.php");