mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-12-04 11:06:04 +03:00
Fix constant (#268)
Co-authored-by: ellynoize <a.kolesnikov@retailcrm.ru>
This commit is contained in:
parent
2c6cccc3b1
commit
c5916fc8f2
@ -1,3 +1,6 @@
|
|||||||
|
## v4.1.18
|
||||||
|
* Fixed constant with version of module.
|
||||||
|
|
||||||
## v4.1.17
|
## v4.1.17
|
||||||
* Added additional parameters to GET requests.
|
* Added additional parameters to GET requests.
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use retailcrm\Retailcrm;
|
||||||
|
|
||||||
class ControllerExtensionModuleRetailcrm extends Controller
|
class ControllerExtensionModuleRetailcrm extends Controller
|
||||||
{
|
{
|
||||||
const VERSION_MODULE = '4.1.17';
|
|
||||||
|
|
||||||
private $_error = [];
|
private $_error = [];
|
||||||
protected $log, $statuses, $payments, $deliveryTypes, $retailcrmApiClient, $moduleTitle, $tokenTitle;
|
protected $log, $statuses, $payments, $deliveryTypes, $retailcrmApiClient, $moduleTitle, $tokenTitle;
|
||||||
public $children, $template;
|
public $children, $template;
|
||||||
@ -321,7 +321,7 @@ class ControllerExtensionModuleRetailcrm extends Controller
|
|||||||
|
|
||||||
$_data = &$data;
|
$_data = &$data;
|
||||||
|
|
||||||
$_data['module_version'] = self::VERSION_MODULE;
|
$_data['module_version'] = Retailcrm::VERSION_MODULE;
|
||||||
|
|
||||||
foreach ($text_strings as $text) {
|
foreach ($text_strings as $text) {
|
||||||
$_data[$text] = $this->language->get($text);
|
$_data[$text] = $this->language->get($text);
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use retailcrm\Retailcrm;
|
||||||
|
|
||||||
class RetailcrmHttpClient
|
class RetailcrmHttpClient
|
||||||
{
|
{
|
||||||
const METHOD_GET = 'GET';
|
const METHOD_GET = 'GET';
|
||||||
@ -66,7 +68,7 @@ class RetailcrmHttpClient
|
|||||||
'cms_source' => 'OpenCart',
|
'cms_source' => 'OpenCart',
|
||||||
'cms_version' => VERSION,
|
'cms_version' => VERSION,
|
||||||
'php_version' => function_exists('phpversion') ? phpversion() : '',
|
'php_version' => function_exists('phpversion') ? phpversion() : '',
|
||||||
'module_version' => ControllerExtensionModuleRetailcrm::VERSION_MODULE,
|
'module_version' => Retailcrm::VERSION_MODULE,
|
||||||
])
|
])
|
||||||
: $parameters = array_merge($this->defaultParameters, $parameters);
|
: $parameters = array_merge($this->defaultParameters, $parameters);
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ class Retailcrm {
|
|||||||
|
|
||||||
const RETAILCRM_DISCOUNT = 'retailcrm_discount';
|
const RETAILCRM_DISCOUNT = 'retailcrm_discount';
|
||||||
const RETAILCRM_DISCOUNT_SORT_ORDER = 8;
|
const RETAILCRM_DISCOUNT_SORT_ORDER = 8;
|
||||||
|
const VERSION_MODULE = '4.1.18';
|
||||||
|
|
||||||
protected $registry;
|
protected $registry;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user