From 289a98885358f2a77a0a76b1811d681bb8381d22 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 25 Aug 2022 19:25:10 +0530 Subject: [PATCH] Replace _PS_MODULE_DIR_ with ->_path in 'wkroomsearchblock' module --- modules/wkroomsearchblock/wkroomsearchblock.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/wkroomsearchblock/wkroomsearchblock.php b/modules/wkroomsearchblock/wkroomsearchblock.php index 2a05b8fb0..e8cd779f4 100644 --- a/modules/wkroomsearchblock/wkroomsearchblock.php +++ b/modules/wkroomsearchblock/wkroomsearchblock.php @@ -74,14 +74,14 @@ class WkRoomSearchBlock extends Module // apply assets as per pages if ('category' == $controller) { - $this->context->controller->addCSS(_PS_MODULE_DIR_.$this->name.'/views/css/wk-category-search.css'); + $this->context->controller->addCSS($this->_path.'views/css/wk-category-search.css'); } if ('index' == $controller) { - $this->context->controller->addCSS(_PS_MODULE_DIR_.$this->name.'/views/css/wk-landing-page-search.css'); + $this->context->controller->addCSS($this->_path.'views/css/wk-landing-page-search.css'); } if ('product' == $controller) { - $this->context->controller->addCSS(_PS_MODULE_DIR_.$this->name.'/views/css/wk-roomtype-search.css'); - $this->context->controller->addJS(_PS_MODULE_DIR_.$this->name.'/views/js/wk-roomtype-search.js'); + $this->context->controller->addCSS($this->_path.'views/css/wk-roomtype-search.css'); + $this->context->controller->addJS($this->_path.'views/js/wk-roomtype-search.js'); } }