From c35adf21b3b9f6f6fb7a530c9f07952b4ef61abf Mon Sep 17 00:00:00 2001 From: nicolasdekimpe Date: Mon, 19 Jan 2015 12:15:10 +0100 Subject: [PATCH] Upgrade for Prestashop 1.6 Tools::addJs() and Tools::addCss() --> Deprecated functions in Prestashop 1.6 --- src/contentbox.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/contentbox.php b/src/contentbox.php index 56ee917..83b43bf 100644 --- a/src/contentbox.php +++ b/src/contentbox.php @@ -550,8 +550,8 @@ public function displayForm() } else { - Tools::addJs($this->_path.'/js/contentbox.js'); - Tools::addCss($this->_path.'/css/contentbox.css'); + Context::getContext()->controller->addJs($this->_path.'/js/contentbox.js'); + Context::getContext()->controller->addCss($this->_path.'/css/contentbox.css'); } return $this->_html.$helper->generateForm($fields_form); @@ -810,4 +810,4 @@ public static function setFiles($files_list = null, $id_store = 1, $id_lang = nu return Db::getInstance()->execute( $sql ); } -} \ No newline at end of file +}