Index: branches/5.1.x/install.php =================================================================== diff -u -r12920 -r14255 --- branches/5.1.x/install.php (.../5.0.x/install.php) (revision 12920) +++ branches/5.1.x/install.php (.../5.1.x/install.php) (revision 14255) @@ -1,6 +1,6 @@ Init(); - if ($application->RecallVar('user_id') != -1) { + if ($application->RecallVar('user_id') != USER_ROOT) { die('restricted access!'); } @@ -44,9 +44,9 @@ $toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{NewsCatId}', $category->GetID()); $toolkit->ImportLanguage('/' . $module_folder . '/install/english'); - $toolkit->SetModuleRootCategory($module_folder, $category->GetID()); + $toolkit->SetModuleRootCategory(basename($module_folder), $category->GetID()); - $toolkit->linkCustomFields($module_folder, 'n', 2); // to create Custom Fields for News + $toolkit->linkCustomFields(basename($module_folder), 'n', 2); // to create Custom Fields for News $toolkit->linkCustomFields('KERNEL', 'c', 1); // to create ItemTemplate custom field $toolkit->setModuleItemTemplate($category, 'n', '#in-news/item_design#');