reindente some code

verify if config database file exists beforeinitializing Propel
This commit is contained in:
Manuel Raynaud
2013-01-24 20:45:16 +01:00
parent 6dd0cb3a17
commit 630ac72aaa
4 changed files with 14 additions and 35 deletions

View File

@@ -1,9 +1,5 @@
<?php
if (!isset($env)) {
$env = 'prod';
}
/**
*
* @file
@@ -16,8 +12,7 @@ $loader = require __DIR__ . '/autoload.php';
if(file_exists(THELIA_ROOT . '/local/config/config_db.php'))
{
if (file_exists(THELIA_ROOT . '/local/config/config_db.php')) {
require THELIA_ROOT . '/local/config/config_db.php';
} else {
define('THELIA_INSTALL_MODE',true);