Index: branches/unlabeled/unlabeled-1.10.2/kernel/units/phrases/phrases_event_handler.php =================================================================== diff -u -r6094 -r6493 --- branches/unlabeled/unlabeled-1.10.2/kernel/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 6094) +++ branches/unlabeled/unlabeled-1.10.2/kernel/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 6493) @@ -3,11 +3,15 @@ class PhrasesEventHandler extends InpDBEventHandler { + /** + * Allow to create phrases from front end in debug mode with DBG_PHRASES constant set + * + * @param kEvent $event + */ function CheckPermission(&$event) { - if (!$this->Application->IsAdmin() && $event->Name == 'OnCreate' && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { - if ($event->Name == 'OnCreate') { - // allow create phrases from front end in debug mode with DBG_PHRASES + if (!$this->Application->IsAdmin() && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { + if ($event->Name == 'OnNew' || $event->Name == 'OnCreate') { return true; } } Index: branches/unlabeled/unlabeled-1.10.2/core/units/phrases/phrases_event_handler.php =================================================================== diff -u -r6094 -r6493 --- branches/unlabeled/unlabeled-1.10.2/core/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 6094) +++ branches/unlabeled/unlabeled-1.10.2/core/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 6493) @@ -3,11 +3,15 @@ class PhrasesEventHandler extends InpDBEventHandler { + /** + * Allow to create phrases from front end in debug mode with DBG_PHRASES constant set + * + * @param kEvent $event + */ function CheckPermission(&$event) { - if (!$this->Application->IsAdmin() && $event->Name == 'OnCreate' && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { - if ($event->Name == 'OnCreate') { - // allow create phrases from front end in debug mode with DBG_PHRASES + if (!$this->Application->IsAdmin() && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { + if ($event->Name == 'OnNew' || $event->Name == 'OnCreate') { return true; } }