1
0
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:
SecretR
2012-12-20 12:06:28 +02:00
parent 9730d2b645
commit 94c9f41071

View File

@@ -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;
} }