Ошибка:
Fatal error: Cannot redeclare class StartupCreateProcessor in /home/offnotee/demoofby/core/components/startup/processors/mgr/create.class.php on line 47
вот сам класс
class StartupCreateProcessor extends modObjectCreateProcessor { public $objectType = 'Startup'; public $classKey = 'Startup'; public $languageTopics = array('startup'); public $description='012345|987642'; //public $permission = 'create'; /** * @return bool */ public function beforeSet() { $name = trim($this->getProperty('name')); if (empty($name)) { $this->modx->error->addField('name', $this->modx->lexicon('startup_item_err_name')); } elseif ($this->modx->getCount($this->classKey, array('name' => $name))) { $this->modx->error->addField('name', $this->modx->lexicon('startup_item_err_ae')); } return parent::beforeSet(); } /** * @return bool*/ public function beforeSave() { return parent::beforeSave(); } } return 'StartupCreateProcessor';
47 строка это закрывающаяся фигурная скобка.