From f651acbb7783bd2da0ec92c03a5ca0f0ab0d02b3 Mon Sep 17 00:00:00 2001 From: Wayann Date: Fri, 27 Feb 2015 15:48:20 +0100 Subject: [PATCH] allow override of module set private methods to protected so we can take advantage of the new module overriding function from module.php --- blocktopmenu.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blocktopmenu.php b/blocktopmenu.php index 3a0a7c4..cbb897b 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -373,7 +373,7 @@ class Blocktopmenu extends Module } } - private function makeMenuOption() + protected function makeMenuOption() { $id_shop = (int)Shop::getContextShopID(); @@ -461,7 +461,7 @@ class Blocktopmenu extends Module return $html.''; } - private function makeMenu() + protected function makeMenu() { $menu_items = $this->getMenuItems(); $id_lang = (int)$this->context->language->id; @@ -574,7 +574,7 @@ class Blocktopmenu extends Module } } - private function generateCategoriesOption($categories, $items_to_skip = null) + protected function generateCategoriesOption($categories, $items_to_skip = null) { $html = ''; @@ -594,7 +594,7 @@ class Blocktopmenu extends Module return $html; } - private function generateCategoriesMenu($categories, $is_children = 0) + protected function generateCategoriesMenu($categories, $is_children = 0) { $html = ''; @@ -644,7 +644,7 @@ class Blocktopmenu extends Module return $html; } - private function getCMSMenuItems($parent, $depth = 1, $id_lang = false) + protected function getCMSMenuItems($parent, $depth = 1, $id_lang = false) { $id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id; @@ -683,7 +683,7 @@ class Blocktopmenu extends Module } } - private function getCMSOptions($parent = 0, $depth = 1, $id_lang = false, $items_to_skip = null) + protected function getCMSOptions($parent = 0, $depth = 1, $id_lang = false, $items_to_skip = null) { $html = ''; $id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;