Clean code
This commit is contained in:
parent
59a7d5b89d
commit
5bfd82e528
@ -225,6 +225,7 @@ Following changes may create regressions for some external modules, but were nec
|
|||||||
* If your database is MySQL or MariaDB, you need at least version 5.1
|
* If your database is MySQL or MariaDB, you need at least version 5.1
|
||||||
* Function set_price_level() has been renamed into setPriceLevel() to follow camelcase rules
|
* Function set_price_level() has been renamed into setPriceLevel() to follow camelcase rules
|
||||||
* removed deprecated subtituion key __REFCLIENT__ (replaced with __REF_CLIENT__)
|
* removed deprecated subtituion key __REFCLIENT__ (replaced with __REF_CLIENT__)
|
||||||
|
* Removed constant MAIN_COUNTRIES_IN_EEC. You can now set if country is in Europe or not from the dictionary of countries.
|
||||||
|
|
||||||
|
|
||||||
***** ChangeLog for 13.0.3 compared to 13.0.2 *****
|
***** ChangeLog for 13.0.3 compared to 13.0.2 *****
|
||||||
|
|||||||
@ -715,10 +715,7 @@ function getCountriesInEEC()
|
|||||||
global $conf, $db;
|
global $conf, $db;
|
||||||
$country_code_in_EEC = array();
|
$country_code_in_EEC = array();
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_COUNTRIES_IN_EEC)) {
|
if (!empty($conf->cache['country_code_in_EEC'])) {
|
||||||
// For example MAIN_COUNTRIES_IN_EEC = 'AT,BE,BG,CY,CZ,DE,DK,EE,ES,FI,FR,GB,GR,HR,NL,HU,IE,IM,IT,LT,LU,LV,MC,MT,PL,PT,RO,SE,SK,SI,UK'
|
|
||||||
$country_code_in_EEC = explode(',', $conf->global->MAIN_COUNTRIES_IN_EEC);
|
|
||||||
} elseif (!empty($conf->cache['country_code_in_EEC'])) {
|
|
||||||
// Use of cache to reduce number of database requests
|
// Use of cache to reduce number of database requests
|
||||||
$country_code_in_EEC = $conf->cache['country_code_in_EEC'];
|
$country_code_in_EEC = $conf->cache['country_code_in_EEC'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user