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; } Index: branches/5.2.x/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r15601 -r15720 --- branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 15601) +++ branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 15720) @@ -1,6 +1,6 @@ _getPage($params); - $url_params = Array( - 'pass' => 'm,c', - 'c_id' => $page->GetID(), - 'c_event' => 'OnGetPageInfo', - '__URLENCODE__' => 1, - '__NO_REWRITE__'=> 1, - 'index_file' => 'index.php', - ); - $page_helper = $this->Application->recallObject('PageHelper'); /* @var $page_helper PageHelper */ $class_params = Array ( 'pageId' => $page->GetID(), - 'pageInfo' => $page_helper->getPageInfo( $page->GetID() ), + 'pageInfo' => $page->isLoaded() ? $page_helper->getPageInfo( $page->GetID() ) : Array (), 'editUrl' => $edit_template_url, 'browseUrl' => $this->Application->HREF('', '', Array ('editing_mode' => '#EDITING_MODE#', '__NO_REWRITE__' => 1, 'no_amp' => 1)), 'saveLayoutUrl' => $save_layout_url,