add_system_message(_("Edit failed"), 'error'); forward(""); } else { $psyhvel = new Psyhvel(); $obj = $psyhvel->loadType($type, $id); $obj_id = $obj->build(get_inputs()); if (!$obj_id) { $TeKe->add_system_message(_("At least one of the required parameters is empty."), 'error'); $TeKe->add_system_message(_("Not saved."), 'error'); forward(WWW_ROOT."{$handler}/{$type}/${id}/edit"); } } $TeKe->add_system_message(_("Saved")); forward(WWW_ROOT."{$handler}/{$type}/${obj_id}/view?changed=true"); ?>