Skip to content

Commit

Permalink
Check config before setting Developer base path
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWeitenauer committed May 11, 2021
1 parent 66d245d commit b558f0d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@
theme_compat::syncConfig();

rex_extension::register('DEVELOPER_MANAGER_START', function (rex_extension_point $ep) {
$theme_folder = rex_addon::get('theme')->getProperty('theme_folder');
$theme_folder = rex_path::base($theme_folder.'/private/redaxo/');
$addon = rex_addon::get('theme');

rex_developer_manager::setBasePath($theme_folder);
if ($addon->getConfig('synchronize')) {
$theme_folder = $addon->getProperty('theme_folder');
$theme_folder = rex_path::base($theme_folder.'/private/redaxo/');

rex_developer_manager::setBasePath($theme_folder);
}
}, rex_extension::NORMAL);
}
}
Expand Down

0 comments on commit b558f0d

Please sign in to comment.