Index: branches/5.2.x/units/posts/post_eh.php =================================================================== diff -u -N -r13839 -r14098 --- branches/5.2.x/units/posts/post_eh.php (.../post_eh.php) (revision 13839) +++ branches/5.2.x/units/posts/post_eh.php (.../post_eh.php) (revision 14098) @@ -1,6 +1,6 @@ checkPostPermission($event, 'TOPIC.REPLY.MODIFY|TOPIC.REPLY.OWNER.MODIFY'); if (!$perm_status) { - $event->status = erFAIL; + $event->status = kEvent::erFAIL; return ; } @@ -156,7 +156,7 @@ $perm_status = $this->checkPostPermission($event, 'TOPIC.REPLY.OWNER.DELETE|TOPIC.REPLY.DELETE'); if (!$perm_status) { - $event->status = erFAIL; + $event->status = kEvent::erFAIL; } } @@ -271,7 +271,7 @@ { parent::OnCreate($event); - if ($event->status == erSUCCESS && !$this->Application->isAdmin) { + if ($event->status == kEvent::erSUCCESS && !$this->Application->isAdmin) { $event->SetRedirectParam('opener', 's'); $event->redirect = $this->Application->GetVar('next_template'); } @@ -286,7 +286,7 @@ { parent::OnUpdate($event); - if ($event->status == erSUCCESS && !$this->Application->isAdmin) { + if ($event->status == kEvent::erSUCCESS && !$this->Application->isAdmin) { $event->SetRedirectParam('opener', 's'); $event->redirect = $this->Application->GetVar('next_template'); $event->SetRedirectParam('pass', 'm,bb'); @@ -367,7 +367,7 @@ { parent::OnDelete($event); - if ($event->status == erSUCCESS && !$this->Application->isAdmin) { + if ($event->status == kEvent::erSUCCESS && !$this->Application->isAdmin) { $parent_prefix = $this->Application->getUnitOption($event->Prefix, 'ParentPrefix'); $event->SetRedirectParam('pass', 'm,'.$parent_prefix); }