mirror of
https://github.com/e107inc/e107.git
synced 2025-06-06 10:54:57 +02:00
e107:lan() improvements
This commit is contained in:
parent
9730d2b645
commit
94c9f41071
@ -2200,6 +2200,7 @@ class e107
|
||||
*/
|
||||
public static function lan($type, $fname = null, $options = null)
|
||||
{
|
||||
$options = $options ? true : false;
|
||||
switch ($type)
|
||||
{
|
||||
case 'core' :
|
||||
@ -2207,11 +2208,11 @@ class e107
|
||||
break;
|
||||
|
||||
case 'theme' :
|
||||
self::themeLan($fname, null);
|
||||
self::themeLan($fname, null, $options);
|
||||
break;
|
||||
default :
|
||||
$opt = ($options === true) ? true : false;
|
||||
self::plugLan($type,$fname, $opt);
|
||||
|
||||
self::plugLan($type, $fname, $options);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user