Index: branches/5.1.x/core/install/install_toolkit.php =================================================================== diff -u -N -r13393 -r13545 --- branches/5.1.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 13393) +++ branches/5.1.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 13545) @@ -1,6 +1,6 @@ $name, 'Filename' => $name, 'AutomaticFilename' => 1, $fields['description'] => $description, 'Status' => STATUS_ACTIVE, 'Priority' => -9999, + + // prevents empty link to module category on spearate module install + 'NamedParentPath' => 'Content/' . $name, ); $category_fields['ParentId'] = $this->Application->findModule('Name', 'Core', 'RootCat'); @@ -844,6 +847,12 @@ return ; } + $themes_helper =& $this->Application->recallObject('ThemesHelper'); + /* @var $themes_helper kThemesHelper */ + + $module_name = $this->Application->findModule('Path', rtrim($module_folder, '/') . '/', 'Name'); + $themes_helper->syncronizeModule($module_name); + $this->deleteCache($refresh_permissions); $url_params = Array (