Index: branches/RC/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r11649 -r11661 --- branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 11649) +++ branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 11661) @@ -20,8 +20,6 @@ 'OnRecalculatePriorities' => Array ('self' => 'add|edit'), // category ordering 'OnItemBuild' => Array ('self' => true), // always allow to view individual categories (regardless of CATEGORY.VIEW right) 'OnUpdatePreviewBlock' => Array ('self' => true), // for FCKEditor integration - - 'OnSaveBlock' => Array ('self' => true), // saves RenderElements from Front-End ); $this->permMapping = array_merge($this->permMapping, $permissions); @@ -763,9 +761,11 @@ */ function _templateFound($template, $theme_id = null) { - if (!defined('DBG_NPARSER_FORCE_COMPILE')) { - $this->Application->InitParser(); - define('DBG_NPARSER_FORCE_COMPILE', 1); + static $init_made = false; + + if (!$init_made) { + $this->Application->InitParser(true); + $init_made = true; } if (!isset($theme_id)) { @@ -1283,7 +1283,7 @@ if ($object->GetDBField('IsSystem') == 1) { if (!$this->_templateFound($object->GetDBField('Template'), $object->GetDBField('ThemeId'))) { - $object->SetError('Template', 'template_file_missing', 'la_err_TemplateFileMissing'); + $object->SetError('Template', 'template_file_missing', 'la_error_TemplateFileMissing'); } } @@ -1847,25 +1847,6 @@ $this->Application->StoreVar('_editor_preview_content_', $string); } - - /** - * Saves changed template block - * - * @param kEvent $event - */ - function OnSaveBlock(&$event) - { - if (!EDITING_MODE) { - $event->status = erSTOP; - echo '0'; - return ; - } - - $template_helper =& $this->Application->recallObject('TemplateHelper'); - /* @var $template_helper TemplateHelper */ - - $event->status = $template_helper->saveBlock($event) ? erSTOP : erFAIL; - } } ?> \ No newline at end of file