[-] 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:
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
@@ -36,12 +37,12 @@ class Ekomi extends Module
|
|||||||
public $id_lang;
|
public $id_lang;
|
||||||
public $iso_lang;
|
public $iso_lang;
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$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,9 +56,9 @@ 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.'/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function install()
|
public function install()
|
||||||
@@ -150,4 +151,3 @@ class Ekomi extends Module
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user