[-] 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
This commit is contained in:
fSerny committed 2011-12-02 11:23:04 +00:00
1 parent 1123ad3aa1
commit 465542aac7
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<module> <module>
<name>ekomi</name> <name>ekomi</name>
<displayName><![CDATA[eKomi]]></displayName> <displayName><![CDATA[eKomi]]></displayName>
<version><![CDATA[1.2]]></version> <version><![CDATA[1.3]]></version>
<description><![CDATA[Adds an eKomi block]]></description> <description><![CDATA[Adds an eKomi block]]></description>
<author><![CDATA[PrestaShop]]></author> <author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[advertising_marketing]]></tab> <tab><![CDATA[advertising_marketing]]></tab>
+4 -4
View File
@@ -25,6 +25,7 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
if (!defined('_PS_VERSION_')) if (!defined('_PS_VERSION_'))
exit; exit;
@@ -41,7 +42,7 @@ class Ekomi extends Module
$this->name = 'ekomi'; $this->name = 'ekomi';
$this->tab = 'advertising_marketing'; $this->tab = 'advertising_marketing';
$this->author = 'PrestaShop'; $this->author = 'PrestaShop';
$this->version = 1.2; $this->version = 1.3;
$this->need_instance = 0; $this->need_instance = 0;
parent::__construct(); parent::__construct();
@@ -55,8 +56,8 @@ class Ekomi extends Module
$this->iso_lang = pSQL(Language::getIsoById($this->id_lang)); $this->iso_lang = pSQL(Language::getIsoById($this->id_lang));
/* Check Mail Directory */ /* Check Mail Directory */
if (!file_exists(dirname(__FILE__.'/'.$this->iso_lang.'/'))) if (!is_dir('../modules/'.$this->name.'/mails/'.$this->iso_lang.'/'))
$this->warning .= $this->l('directory').' "'.$this->iso_lang.'" does not exist '; $this->warning .= $this->l('directory').' "'.$this->iso_lang.'" does not exist '.'../modules/'.$this->name.'/mails/'.$this->iso_lang.'/';
} }
} }
@@ -150,4 +151,3 @@ class Ekomi extends Module
} }
} }