Skip to content

Commit

Permalink
Merge pull request #4703 in SW/shopware from SW-17792/5.2/fix-ssl-ima…
Browse files Browse the repository at this point in the history
…ges-in-language-subshops to 5.2

* commit '0ee7a253d67ebc0cd4343a6b01981e2874bad5c0':
  SW-17792 - Fix SSL in exported images in language subshops
  • Loading branch information
htkassner committed Mar 21, 2017
2 parents dd0d0fc + 0ee7a25 commit 6315bd3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions engine/Shopware/Core/sExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function sGetCustomergroup($customerGroup)
}

/**
* @param $id
* @param int $id
* @return mixed
*/
private function getShopData($id)
Expand All @@ -208,11 +208,11 @@ private function getShopData($id)
}

if (empty($id)) {
$sql = "s.`default`=1";
$sql = 's.`default`=1';
} elseif (is_numeric($id)) {
$sql = "s.id=".$id;
$sql = 's.id=' . $id;
} elseif (is_string($id)) {
$sql = "s.name=".$this->db->quote(trim($id));
$sql = 's.name=' . $this->db->quote(trim($id));
}

$cache[$id] = $this->db->fetchRow("
Expand All @@ -225,7 +225,8 @@ private function getShopData($id)
COALESCE (s.base_path, m.base_path) AS base_path,
COALESCE (s.base_url, m.base_url) AS base_url,
COALESCE (s.hosts, m.hosts) AS hosts,
COALESCE (s.secure, m.secure) AS secure,
GREATEST (COALESCE (s.secure, 0), COALESCE (m.secure, 0)) AS secure,
GREATEST (COALESCE (s.always_secure, 0), COALESCE (m.always_secure, 0)) AS always_secure,
COALESCE (s.secure_host, m.secure_host) AS secure_host,
COALESCE (s.secure_base_path, m.secure_base_path) AS secure_base_path,
COALESCE (s.template_id, m.template_id) AS template_id,
Expand All @@ -236,8 +237,7 @@ private function getShopData($id)
s.fallback_id,
s.customer_scope,
s.`default`,
s.active,
s.always_secure
s.active
FROM s_core_shops s
LEFT JOIN s_core_shops m
ON m.id=s.main_id
Expand Down

0 comments on commit 6315bd3

Please sign in to comment.