Index: branches/5.1.x/core/units/phrases/phrases_event_handler.php =================================================================== diff -u -N -r12657 -r13086 --- branches/5.1.x/core/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 12657) +++ branches/5.1.x/core/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 13086) @@ -1,6 +1,6 @@ Special == 'import') { + $object->setRequired('LangFile', true); + $object->setRequired('Phrase', false); + $object->setRequired('Translation', false); + + // allow multiple phrase types to be selected during import + $field_options = $object->GetFieldOptions('PhraseType'); + $field_options['type'] = 'string'; + $object->SetFieldOptions('PhraseType', $field_options); + } } /** @@ -37,7 +48,7 @@ */ function CheckPermission(&$event) { - if (!$this->Application->IsAdmin() && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { + if (!$this->Application->isAdmin && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { $allow_events = Array ('OnCreate', 'OnUpdate'); if (in_array($event->Name, $allow_events)) {