mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
fix использования алиаса LS в шаблонах ($LS->) и статического вызова (LS::, php5.3+)
This commit is contained in:
parent
ea674933ee
commit
face5bc1af
|
@ -946,7 +946,7 @@ class LS {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function __call($sName,$aArgs=array()) {
|
public function __call($sName,$aArgs=array()) {
|
||||||
return self::E()->$sName($aArgs);
|
return call_user_func_array(array(self::E(),$sName),$aArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -954,7 +954,7 @@ class LS {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function __callStatic($sName,$aArgs=array()) {
|
public static function __callStatic($sName,$aArgs=array()) {
|
||||||
return self::E()->$sName($aArgs);
|
return call_user_func_array(array(self::E(),$sName),$aArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue