From 0de85c2274c89cc1e1e219f3c38cd70ddf254654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 7 Jan 2013 18:45:31 +0100 Subject: [PATCH 1/2] [-] FO: rtl.css was missing on default theme --- themes/default/css/rtl.css | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 themes/default/css/rtl.css diff --git a/themes/default/css/rtl.css b/themes/default/css/rtl.css new file mode 100644 index 000000000..677d5c53c --- /dev/null +++ b/themes/default/css/rtl.css @@ -0,0 +1,2 @@ +* { direction: rtl !important; } +#page { text-align: right !important; } \ No newline at end of file From ad38d238bc7916ea46093bcdd52cda7cfc311608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 7 Jan 2013 19:59:00 +0100 Subject: [PATCH 2/2] // small fix --- modules/blockcategories/blockcategories.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 828efe73e..f3ffdf8c4 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -186,6 +186,9 @@ class BlockCategories extends Module $blockCategTree = $this->getTree($resultParents, $resultIds, Configuration::get('BLOCK_CATEG_MAX_DEPTH')); unset($resultParents, $resultIds); + $id_category = (int)Tools::getValue('id_category'); + $id_product = (int)Tools::getValue('id_product'); + $isDhtml = (Configuration::get('BLOCK_CATEG_DHTML') == 1 ? true : false); if (Tools::isSubmit('id_category')) { @@ -195,7 +198,7 @@ class BlockCategories extends Module if (Tools::isSubmit('id_product')) { if (!isset($this->context->cookie->last_visited_category) - || !Product::idIsOnCategoryId((int)Tools::getValue('id_product'), array('0' => array('id_category' => $this->context->cookie->last_visited_category))) + || !Product::idIsOnCategoryId($id_product, array('0' => array('id_category' => $this->context->cookie->last_visited_category))) || !Category::inShopStatic($this->context->cookie->last_visited_category, $this->context->shop)) { $product = new Product($id_product); @@ -267,6 +270,9 @@ class BlockCategories extends Module $isDhtml = (Configuration::get('BLOCK_CATEG_DHTML') == 1 ? true : false); + $id_category = (int)Tools::getValue('id_category'); + $id_product = (int)Tools::getValue('id_product'); + if (Tools::isSubmit('id_category')) { $this->context->cookie->last_visited_category = $id_category;