Index: branches/5.1.x/core/units/categories/categories_tag_processor.php =================================================================== diff -u -r13915 -r13951 --- branches/5.1.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 13915) +++ branches/5.1.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 13951) @@ -1,6 +1,6 @@ getObject($params); /* @var $object kDBList */ - if ($object->GetDBField('CreatedBySystem')) { + if ($object->GetDBField('ThemeId') > 0) { if (!$object->GetDBField('IsMenu')) { return $icon_prefix . 'section_menuhidden_system.png'; } @@ -511,9 +511,9 @@ else { // all done, update left tree and redirect $updater->SaveData(); - $this->Application->RemoveVar('PermCache_UpdateRequired'); - $this->Application->StoreVar('RefreshStructureTree', 1); - $this->Application->Redirect($params['destination_template']); + $this->Application->RemoveVar('PermCache_UpdateRequired'); + $this->Application->StoreVar('RefreshStructureTree', 1); + $this->Application->Redirect($params['destination_template']); } $ret = $updater->getDonePercent(); @@ -1962,4 +1962,16 @@ return $json_helper->encode($categories); } + + function PageEditable($params) + { + if ($this->Application->isDebugMode()) { + return true; + } + + $object =& $this->getObject($params); + /* @var $object kDBItem */ + + return !$object->GetDBField('Protected'); + } } \ No newline at end of file