// Context part 16 (shops)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7664 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -231,10 +231,11 @@ class CurrencyCore extends ObjectModel
|
||||
if (is_null($id_shop))
|
||||
$id_shop = Context::getContext()->shop->getID();
|
||||
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
|
||||
SELECT mc.*
|
||||
FROM `'._DB_PREFIX_.'module_currency` mc
|
||||
WHERE mc.`id_module` = '.(int)$id_module.' AND mc.`id_shop`='.(int)$id_shop);
|
||||
$sql = 'SELECT *
|
||||
FROM `'._DB_PREFIX_.'module_currency`
|
||||
WHERE `id_module` = '.(int)$id_module.'
|
||||
AND `id_shop`='.(int)$id_shop;
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sql);
|
||||
}
|
||||
|
||||
static public function getCurrency($id_currency)
|
||||
|
||||
Reference in New Issue
Block a user