Fix constant (#268)

Co-authored-by: ellynoize <a.kolesnikov@retailcrm.ru>
This commit is contained in:
ellynoize 2024-11-14 15:10:15 +06:00 committed by GitHub
parent 2c6cccc3b1
commit c5916fc8f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,6 @@
## v4.1.18
* Fixed constant with version of module.
## v4.1.17
* Added additional parameters to GET requests.

View File

@ -1 +1 @@
4.1.17
4.1.18

View File

@ -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;
@ -321,7 +321,7 @@ class ControllerExtensionModuleRetailcrm extends Controller
$_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);

View File

@ -1,5 +1,7 @@
<?php
use retailcrm\Retailcrm;
class RetailcrmHttpClient
{
const METHOD_GET = 'GET';
@ -66,7 +68,7 @@ class RetailcrmHttpClient
'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);

View File

@ -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;