From c300cd571e0d6065d5f4824a665ee3ef70a1d142 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 16 Jul 2024 17:32:59 +0530 Subject: [PATCH] Removed the PS_STORES_ICON from the category front controller and added in hotel reservation system --- controllers/front/CategoryController.php | 5 ----- modules/hotelreservationsystem/hotelreservationsystem.php | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index 5072ed2d3..fb3b1a784 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -59,11 +59,6 @@ class CategoryControllerCore extends FrontController $this->addCSS(_THEME_CSS_DIR_.'occupancy.css'); $this->addJS(_THEME_JS_DIR_.'occupancy.js'); - Media::addJsDef( - array( - 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), - ) - ); $scenes = Scene::getScenes($this->category->id, $this->context->language->id, true, false); if ($scenes && count($scenes)) { $this->addJS(_THEME_JS_DIR_.'scenes.js'); diff --git a/modules/hotelreservationsystem/hotelreservationsystem.php b/modules/hotelreservationsystem/hotelreservationsystem.php index 065640113..eaf939daa 100644 --- a/modules/hotelreservationsystem/hotelreservationsystem.php +++ b/modules/hotelreservationsystem/hotelreservationsystem.php @@ -310,6 +310,7 @@ class HotelReservationSystem extends Module 'map_input_text' => $objHotel->map_input_text, ), 'hotel_name' => $objHotel->hotel_name, + 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), )); $this->context->controller->addJS(