Index: branches/5.2.x/core/install/install_toolkit.php =================================================================== diff -u -r14092 -r14095 --- branches/5.2.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 14092) +++ branches/5.2.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 14095) @@ -1,6 +1,6 @@ INIFile) && !is_writable(dirname($this->INIFile))) { - trigger_error('Cannot write to "' . $this->INIFile . '" file.', $silent ? E_USER_WARNING : E_USER_ERROR); + $error_msg = 'Cannot write to "' . $this->INIFile . '" file'; + + if ($silent) { + trigger_error($error_msg, E_USER_WARNING); + } + else { + throw new Exception($error_msg); + } + return ; } @@ -759,8 +767,7 @@ $this->Application->removeObject('c-cdata'); // recreate all fields, because custom fields are added during install script - $category->defineFields(); - $category->prepareConfigOptions(); // creates ml fields + $category->Configure(); $category->SetDBField('cust_' . $prefix .'_ItemTemplate', $item_template); $category->Update(); @@ -824,7 +831,7 @@ if ($refresh_permissions) { if ($this->Application->ConfigValue('QuickCategoryPermissionRebuild')) { // refresh permission without progress bar - $updater =& $this->Application->recallObject('kPermCacheUpdater'); + $updater =& $this->Application->makeClass('kPermCacheUpdater'); /* @var $updater kPermCacheUpdater */ $updater->OneStepRun();