diff --git a/modules/ekomi/config.xml b/modules/ekomi/config.xml index 20408792a..25221b470 100644 --- a/modules/ekomi/config.xml +++ b/modules/ekomi/config.xml @@ -2,7 +2,7 @@ ekomi - + diff --git a/modules/ekomi/ekomi.php b/modules/ekomi/ekomi.php index 6678042d0..347e4a9c4 100755 --- a/modules/ekomi/ekomi.php +++ b/modules/ekomi/ekomi.php @@ -25,6 +25,7 @@ * International Registered Trademark & Property of PrestaShop SA */ + if (!defined('_PS_VERSION_')) exit; @@ -36,12 +37,12 @@ class Ekomi extends Module public $id_lang; public $iso_lang; - function __construct() - { - $this->name = 'ekomi'; - $this->tab = 'advertising_marketing'; + function __construct() + { + $this->name = 'ekomi'; + $this->tab = 'advertising_marketing'; $this->author = 'PrestaShop'; - $this->version = 1.2; + $this->version = 1.3; $this->need_instance = 0; parent::__construct(); @@ -55,9 +56,9 @@ class Ekomi extends Module $this->iso_lang = pSQL(Language::getIsoById($this->id_lang)); /* Check Mail Directory */ - if (!file_exists(dirname(__FILE__.'/'.$this->iso_lang.'/'))) - $this->warning .= $this->l('directory').' "'.$this->iso_lang.'" does not exist '; - } + if (!is_dir('../modules/'.$this->name.'/mails/'.$this->iso_lang.'/')) + $this->warning .= $this->l('directory').' "'.$this->iso_lang.'" does not exist '.'../modules/'.$this->name.'/mails/'.$this->iso_lang.'/'; + } } public function install() @@ -150,4 +151,3 @@ class Ekomi extends Module } } -