Error handling for if propel isn't found / composer wasn't run
This commit is contained in:
parent
8fbe7dd649
commit
670a63df87
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue