Index: units/categories/categories_event_handler.php =================================================================== --- units/categories/categories_event_handler.php (revision 13951) +++ units/categories/categories_event_handler.php (working copy) @@ -602,7 +602,7 @@ if ($page_id === false && EDITING_MODE) { // create missing pages, when in editing mode - $object =& $this->Application->recallObject($this->Prefix . '.-new', null, Array('skip_autoload' => true)); + $object =& $this->Application->recallObject($this->Prefix . '.rebuild', null, Array('skip_autoload' => true)); /* @var $object kDBItem */ $created = $this->_prepareAutoPage($object, $template, null, SMS_MODE_AUTO, false); // create virtual (not system!) page @@ -1560,7 +1560,7 @@ $now = adodb_mktime(); - if ( !$this->Application->isDebugMode() ) { + if ( !$this->Application->isDebugMode() && strpos($event->Special, 'rebuild') === false ) { $object->SetDBField('Type', $object->GetOriginalField('Type')); $object->SetDBField('Protected', $object->GetOriginalField('Protected')); @@ -1750,7 +1750,7 @@ $backup_category_id = $this->Application->GetVar('m_cat_id'); - $object =& $this->Application->recallObject($this->Prefix . '.-item', null, Array ('skip_autoload' => true)); + $object =& $this->Application->recallObject($this->Prefix . '.rebuild-path', null, Array ('skip_autoload' => true)); /* @var $object kDBItem */ $parent_id = $base_category; @@ -2021,7 +2021,7 @@ set_time_limit(0); ini_set('memory_limit', -1); - $dummy =& $this->Application->recallObject($event->Prefix . '.-dummy', null, Array ('skip_autoload' => true)); + $dummy =& $this->Application->recallObject($event->Prefix . '.rebuild', null, Array ('skip_autoload' => true)); /* @var $dummy kDBItem */ $error_count = 0;