From 465542aac7f67b230bdb2fb36807df44dbdc5941 Mon Sep 17 00:00:00 2001 From: fSerny Date: Fri, 2 Dec 2011 11:23:04 +0000 Subject: [PATCH] [-] MO : eKomi (1.3) - fix on warnings (PS 1.5) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10854 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/ekomi/config.xml | 2 +- modules/ekomi/ekomi.php | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) 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 } } -