Merge branch 'develop' into gli-2963

This commit is contained in:
azhar bhat
2026-04-16 16:10:26 +05:30
14 changed files with 271 additions and 98 deletions

View File

@@ -3223,7 +3223,25 @@ class AdminImportControllerCore extends AdminController
public function utf8EncodeArray($array)
{
return (is_array($array) ? array_map('utf8_encode', $array) : mb_convert_encoding($array, 'UTF-8', 'ISO-8859-1'));
if (is_array($array)) {
return array_map(function ($value) {
if (is_array($value)) {
return $this->utf8EncodeArray($value);
}
if (!is_string($value)) {
return $value;
}
return mb_convert_encoding($value, 'UTF-8', 'ISO-8859-1');
}, $array);
}
if (!is_string($array)) {
return $array;
}
return mb_convert_encoding($array, 'UTF-8', 'ISO-8859-1');
}
protected function getNbrColumn($handle, $glue)

View File

@@ -485,6 +485,7 @@ class AdminOrdersControllerCore extends AdminController
'advance_payment_amount_without_tax' => $cart->getOrderTotal(false, Cart::ADVANCE_PAYMENT),
'advance_payment_amount_with_tax' => $cart->getOrderTotal(true, Cart::ADVANCE_PAYMENT),
'cart' => $cart,
'customer' => $cart->id_customer ? new Customer($cart->id_customer): null ,
'currencies' => Currency::getCurrenciesByIdShop(Context::getContext()->shop->id),
'langs' => Language::getLanguages(true, Context::getContext()->shop->id),
'payment_modules' => $payment_modules,

View File

@@ -1209,7 +1209,9 @@ class AdminThemesControllerCore extends AdminController
');
foreach ($hook_list as &$row) {
$row['exceptions'] = trim(preg_replace('/(,,+)/', ',', $row['exceptions']), ',');
if($row['exceptions']){
$row['exceptions'] = trim(preg_replace('/(,,+)/', ',', $row['exceptions']), ',');
}
}
$native_modules = $this->getNativeModule();