reindente some code
verify if config database file exists beforeinitializing Propel
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user