Index: core/units/categories/categories_tag_processor.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/categories/categories_tag_processor.php (revision 15713) +++ core/units/categories/categories_tag_processor.php (revision ) @@ -1423,21 +1423,12 @@ $page =& $this->_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, \ No newline at end of file Index: core/units/categories/categories_event_handler.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/categories/categories_event_handler.php (revision 15713) +++ core/units/categories/categories_event_handler.php (revision ) @@ -633,31 +633,6 @@ $page_id = $page_by_template[$template]; } - if ( $page_id === false && EDITING_MODE ) { - // create missing pages, when in editing mode - $object = $this->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; } \ No newline at end of file