Index: branches/5.2.x/core/units/admin/admin_tag_processor.php =================================================================== diff -u -N -r15420 -r15421 --- branches/5.2.x/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 15420) +++ branches/5.2.x/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 15421) @@ -1,6 +1,6 @@ Application->getDBCache('ForcePermCacheUpdate'); $local_mark = $this->Application->RecallVar('PermCache_UpdateRequired'); - if ($global_mark || $local_mark) { + if ( $global_mark || $local_mark ) { $this->Application->RemoveVar('PermCache_UpdateRequired'); + $rebuild_mode = $this->Application->ConfigValue('CategoryPermissionRebuildMode'); - if ($this->Application->ConfigValue('QuickCategoryPermissionRebuild')) { + if ( $rebuild_mode == CategoryPermissionRebuild::SILENT ) { $updater = $this->Application->makeClass('kPermCacheUpdater'); /* @var $updater kPermCacheUpdater */ $updater->OneStepRun(); $this->Application->HandleEvent(new kEvent('c:OnResetCMSMenuCache')); } - else { + elseif ( $rebuild_mode == CategoryPermissionRebuild::AUTOMATIC ) { // update with progress bar return true; }