mirror of
https://github.com/shadoll/sLetter.git
synced 2026-02-04 04:33:16 +00:00
lng fix
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* @author sHa <sha@shadoll.com>
|
* @author sHa <sha@shadoll.com>
|
||||||
* @package sLetter
|
* @package sLetter
|
||||||
* @version 18.2.13-11
|
* @version 18.2.13-12
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -34,6 +34,7 @@ class sLetter{
|
|||||||
private $logoUri = "";
|
private $logoUri = "";
|
||||||
|
|
||||||
function __construct(){
|
function __construct(){
|
||||||
|
$this->loadLanguage();
|
||||||
if($this->senderDetect)
|
if($this->senderDetect)
|
||||||
$this->detect();
|
$this->detect();
|
||||||
}
|
}
|
||||||
@@ -74,12 +75,12 @@ class sLetter{
|
|||||||
|
|
||||||
function set($data){
|
function set($data){
|
||||||
if(!empty($data) && is_array($data))
|
if(!empty($data) && is_array($data))
|
||||||
foreach($data as $key=>$val){
|
foreach($data as $key=>$val)
|
||||||
if(!empty($key) && !empty($val))
|
if(!empty($key) && !empty($val)){
|
||||||
$this->{$key} = is_string($val)?trim(stripslashes($val)):$val;
|
$this->{$key} = is_string($val)?trim(stripslashes($val)):$val;
|
||||||
if($key=='language')
|
if($key=='language')
|
||||||
$this->loadLanguage();
|
$this->loadLanguage();
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user