mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 08:20:54 -04:00
#267 remove warning due to junk dirs being inside a language/xx one
This commit is contained in:
@@ -24,7 +24,7 @@ function load_config()
|
||||
$map = directory_map('./application/language/' . $language);
|
||||
foreach($map as $file)
|
||||
{
|
||||
if ( substr(strrchr($file,'.'),1) == "php")
|
||||
if ( !is_array($file) && substr(strrchr($file,'.'), 1) == "php")
|
||||
{
|
||||
$CI->lang->load( str_replace( '_lang.php', '', $file ), $language);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user