[-] 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
2011-12-02 11:23:04 +00:00
parent 1123ad3aa1
commit 465542aac7
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<module>
<name>ekomi</name>
<displayName><![CDATA[eKomi]]></displayName>
<version><![CDATA[1.2]]></version>
<version><![CDATA[1.3]]></version>
<description><![CDATA[Adds an eKomi block]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[advertising_marketing]]></tab>
+9 -9
View File
@@ -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
}
}