Skip to content

Commit

Permalink
Fixed bug with Contao 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 13, 2015
1 parent 366bc3e commit e9afeac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/MadeYourDay/Contao/CustomElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,12 +1003,17 @@ public static function loadConfig($bypassCache = false)
{
// Don't load the config in the install tool
if (version_compare(VERSION, '4.0', '>=')) {
if (\System::getContainer()->get('request')->get('_route') === 'contao_backend_install') {
try {
if (\System::getContainer()->get('request')->get('_route') === 'contao_backend_install') {
return;
}
}
catch (\Exception $exception) {
return;
}
}
else {
if (\Environment::get('script') === 'contao/install.php') {
if (\Environment::get('script') === 'contao/install.php' || \Environment::get('script') === 'install.php') {
return;
}
}
Expand Down

0 comments on commit e9afeac

Please sign in to comment.