check some permission before starting install process

This commit is contained in:
Manuel Raynaud
2013-06-06 11:54:32 +02:00
parent b3c0397a55
commit c2a6fbecef
6 changed files with 55 additions and 13 deletions

View File

@@ -118,18 +118,20 @@ class Thelia extends Kernel
$loader->load("config.xml");
$loader->load("routing.xml");
$loader->load("action.xml");
if (defined("THELIA_INSTALL_MODE") === false) {
$modules = \Thelia\Model\ModuleQuery::getActivated();
$modules = \Thelia\Model\ModuleQuery::getActivated();
foreach ($modules as $module) {
foreach ($modules as $module) {
try {
$loader = new XmlFileLoader($container, new FileLocator(THELIA_MODULE_DIR . "/" . ucfirst($module->getCode()) . "/Config"));
$loader->load("config.xml");
} catch(\InvalidArgumentException $e) {
try {
$loader = new XmlFileLoader($container, new FileLocator(THELIA_MODULE_DIR . "/" . ucfirst($module->getCode()) . "/Config"));
$loader->load("config.xml");
} catch(\InvalidArgumentException $e) {
}
}
}
}
/**