Skip to content

Commit 6315bd3

Browse files
committed
Merge pull request #4703 in SW/shopware from SW-17792/5.2/fix-ssl-images-in-language-subshops to 5.2
* commit '0ee7a253d67ebc0cd4343a6b01981e2874bad5c0': SW-17792 - Fix SSL in exported images in language subshops
2 parents dd0d0fc + 0ee7a25 commit 6315bd3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

engine/Shopware/Core/sExport.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function sGetCustomergroup($customerGroup)
196196
}
197197

198198
/**
199-
* @param $id
199+
* @param int $id
200200
* @return mixed
201201
*/
202202
private function getShopData($id)
@@ -208,11 +208,11 @@ private function getShopData($id)
208208
}
209209

210210
if (empty($id)) {
211-
$sql = "s.`default`=1";
211+
$sql = 's.`default`=1';
212212
} elseif (is_numeric($id)) {
213-
$sql = "s.id=".$id;
213+
$sql = 's.id=' . $id;
214214
} elseif (is_string($id)) {
215-
$sql = "s.name=".$this->db->quote(trim($id));
215+
$sql = 's.name=' . $this->db->quote(trim($id));
216216
}
217217

218218
$cache[$id] = $this->db->fetchRow("
@@ -225,7 +225,8 @@ private function getShopData($id)
225225
COALESCE (s.base_path, m.base_path) AS base_path,
226226
COALESCE (s.base_url, m.base_url) AS base_url,
227227
COALESCE (s.hosts, m.hosts) AS hosts,
228-
COALESCE (s.secure, m.secure) AS secure,
228+
GREATEST (COALESCE (s.secure, 0), COALESCE (m.secure, 0)) AS secure,
229+
GREATEST (COALESCE (s.always_secure, 0), COALESCE (m.always_secure, 0)) AS always_secure,
229230
COALESCE (s.secure_host, m.secure_host) AS secure_host,
230231
COALESCE (s.secure_base_path, m.secure_base_path) AS secure_base_path,
231232
COALESCE (s.template_id, m.template_id) AS template_id,
@@ -236,8 +237,7 @@ private function getShopData($id)
236237
s.fallback_id,
237238
s.customer_scope,
238239
s.`default`,
239-
s.active,
240-
s.always_secure
240+
s.active
241241
FROM s_core_shops s
242242
LEFT JOIN s_core_shops m
243243
ON m.id=s.main_id

0 commit comments

Comments
 (0)