Index: branches/5.2.x/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r15608 -r15720 --- branches/5.2.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 15608) +++ branches/5.2.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 15720) @@ -1,6 +1,6 @@ Application->recallObject($this->Prefix . '.rebuild', NULL, Array ('skip_autoload' => true)); - /* @var $object CategoriesItem */ - - $created = $this->_prepareAutoPage($object, $template, NULL, SMS_MODE_AUTO); // create virtual (not system!) page - if ( $created ) { - $rebuild_mode = $this->Application->ConfigValue('CategoryPermissionRebuildMode'); - - if ( $rebuild_mode == CategoryPermissionRebuild::SILENT || !$this->Application->isAdmin ) { - $updater = $this->Application->makeClass('kPermCacheUpdater'); - /* @var $updater kPermCacheUpdater */ - - $updater->OneStepRun(); - } - - $this->_resetMenuCache(); - - $this->Application->RemoveVar('PermCache_UpdateRequired'); - - $page_id = $object->GetID(); - $this->Application->SetVar('m_cat_id', $page_id); - } - } - if ( $page_id ) { $page_by_template[$template] = $page_id; }