1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00

fix использования алиаса LS в шаблонах ($LS->) и статического вызова (LS::, php5.3+)

This commit is contained in:
Alexander Zinchuk 2011-03-25 14:45:09 +00:00
parent ea674933ee
commit face5bc1af

View file

@ -946,7 +946,7 @@ class LS {
*
*/
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()) {
return self::E()->$sName($aArgs);
return call_user_func_array(array(self::E(),$sName),$aArgs);
}
}