Skip to content

Commit

Permalink
Fix. Code. Opencart 4.0.1+ compatibility fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Dec 23, 2024
1 parent 7a35fac commit c407caa
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions admin/controller/module/antispambycleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ private function init()
$this->model_setting_event->deleteEventByCode($this->module);
$events = [
'injecting JS to the document' => [
$this->event . '.injectJs' => [
$this->event . '|injectJs' => [
'catalog/controller/common/header/before',
]
],
'adding hidden field' => [
$this->event . '.addHiddenField' => [
$this->event . '|addHiddenField' => [
'catalog/view/account/register/after',
'catalog/view/checkout/register/after',
'catalog/view/account/returns_form',
Expand All @@ -151,32 +151,32 @@ private function init()
]
],
'checking register' => [
$this->event . '.checkRegister' => [
'catalog/controller/account/register.register/before',
'catalog/controller/checkout/register.save/before',
$this->event . '|checkRegister' => [
'catalog/controller/account/register|register/before',
'catalog/controller/checkout/register|save/before',
]
],
'checking order' => [
$this->event . '.checkOrder' => [
'catalog/controller/extension/opencart/payment/bank_transfer.confirm/before',
'catalog/controller/extension/opencart/payment/cheque.confirm/before',
'catalog/controller/extension/opencart/payment/cod.confirm/before',
'catalog/controller/extension/opencart/payment/free_checkout.confirm/before',
$this->event . '|checkOrder' => [
'catalog/controller/extension/opencart/payment/bank_transfer|confirm/before',
'catalog/controller/extension/opencart/payment/cheque|confirm/before',
'catalog/controller/extension/opencart/payment/cod|confirm/before',
'catalog/controller/extension/opencart/payment/free_checkout|confirm/before',
]
],
'checking returns' => [
$this->event . '.checkReturns' => [
'catalog/controller/account/returns.save/before',
$this->event . '|checkReturns' => [
'catalog/controller/account/returns|save/before',
]
],
'checking contact form' => [
$this->event . '.checkContactForm' => [
'catalog/controller/information/contact.send/before',
$this->event . '|checkContactForm' => [
'catalog/controller/information/contact|send/before',
]
],
'checking reviews' => [
$this->event . '.checkReviews' => [
'catalog/controller/product/review.write/before',
$this->event . '|checkReviews' => [
'catalog/controller/product/review|write/before',
]
],
];
Expand Down

0 comments on commit c407caa

Please sign in to comment.