Skip to content

Commit

Permalink
fix requre funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
davydov committed Mar 18, 2019
1 parent b4e2b3c commit 29065f8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions 2.3.x/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_registrations'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('register',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -27,7 +27,7 @@
</operation>
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand All @@ -38,7 +38,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_orders'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('order',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -57,7 +57,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_orders'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('order',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -74,7 +74,7 @@
<add position="before"><![CDATA[if (!isset($json['error'])) {
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_reviews'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('comment',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -84,7 +84,7 @@
</operation>
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand All @@ -95,7 +95,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_contact_form'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('contact',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -109,14 +109,14 @@
<file path = "catalog/controller/checkout/checkout.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
<file path = "catalog/controller/information/contact.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand Down
18 changes: 9 additions & 9 deletions 2.x - 2.2.x/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_registrations'))
{
require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('register',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -27,7 +27,7 @@
</operation>
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand All @@ -38,7 +38,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_orders'))
{
require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('order',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -57,7 +57,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_orders'))
{
require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('order',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -74,7 +74,7 @@
<add position="before"><![CDATA[if (!isset($json['error'])) {
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_reviews'))
{
require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('comment',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -84,7 +84,7 @@
</operation>
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand All @@ -95,7 +95,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_contact_form'))
{
require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('contact',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -109,14 +109,14 @@
<file path = "catalog/controller/checkout/checkout.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
<file path = "catalog/controller/information/contact.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand Down
18 changes: 9 additions & 9 deletions 3.x/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_registrations'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('register',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -27,7 +27,7 @@
</operation>
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand All @@ -38,7 +38,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_orders'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('order',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -57,7 +57,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_orders'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('order',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -74,7 +74,7 @@
<add position="before"><![CDATA[if (!isset($json['error'])) {
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_reviews'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('comment',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -84,7 +84,7 @@
</operation>
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand All @@ -95,7 +95,7 @@
{
if ($this->config->get('module_antispambycleantalk_status') && $this->config->get('module_antispambycleantalk_check_contact_form'))
{
require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key'));
$ct_result = $ct_funcs->onSpamCheck('contact',$this->request->post);
if ($ct_result['allow'] == 0)
Expand All @@ -109,14 +109,14 @@
<file path = "catalog/controller/checkout/checkout.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
<file path = "catalog/controller/information/contact.php">
<operation>
<search><![CDATA[public function index() {]]></search>
<add position="after"><![CDATA[require_once DIR_APPLICATION . '/controller/extension/module/cleantalk.funcs.php';
<add position="after"><![CDATA[require_once DIR_APPLICATION . 'controller/extension/module/cleantalk.funcs.php';
$ct_funcs = new CleantalkFuncs($this->config->get('module_antispambycleantalk_access_key')); $ct_funcs->setCookie();]]></add>
</operation>
</file>
Expand Down

0 comments on commit 29065f8

Please sign in to comment.