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