Skip to content

Commit

Permalink
Fix constant (#268)
Browse files Browse the repository at this point in the history
Co-authored-by: ellynoize <[email protected]>
  • Loading branch information
ellynoize and ellynoize authored Nov 14, 2024
1 parent 2c6cccc commit c5916fc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v4.1.18
* Fixed constant with version of module.

## v4.1.17
* Added additional parameters to GET requests.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.17
4.1.18
6 changes: 3 additions & 3 deletions src/upload/admin/controller/extension/module/retailcrm.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

use retailcrm\Retailcrm;

class ControllerExtensionModuleRetailcrm extends Controller
{
const VERSION_MODULE = '4.1.17';

private $_error = [];
protected $log, $statuses, $payments, $deliveryTypes, $retailcrmApiClient, $moduleTitle, $tokenTitle;
public $children, $template;
Expand Down Expand Up @@ -321,7 +321,7 @@ public function index()

$_data = &$data;

$_data['module_version'] = self::VERSION_MODULE;
$_data['module_version'] = Retailcrm::VERSION_MODULE;

foreach ($text_strings as $text) {
$_data[$text] = $this->language->get($text);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use retailcrm\Retailcrm;

class RetailcrmHttpClient
{
const METHOD_GET = 'GET';
Expand Down Expand Up @@ -66,7 +68,7 @@ public function makeRequest(
'cms_source' => 'OpenCart',
'cms_version' => VERSION,
'php_version' => function_exists('phpversion') ? phpversion() : '',
'module_version' => ControllerExtensionModuleRetailcrm::VERSION_MODULE,
'module_version' => Retailcrm::VERSION_MODULE,
])
: $parameters = array_merge($this->defaultParameters, $parameters);

Expand Down
1 change: 1 addition & 0 deletions src/upload/system/library/retailcrm/retailcrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Retailcrm {

const RETAILCRM_DISCOUNT = 'retailcrm_discount';
const RETAILCRM_DISCOUNT_SORT_ORDER = 8;
const VERSION_MODULE = '4.1.18';

protected $registry;

Expand Down

0 comments on commit c5916fc

Please sign in to comment.