1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Issue #3 Should address some of the Notices/Warnings.

This commit is contained in:
Cameron
2012-11-29 23:12:20 -08:00
parent db07d72afc
commit 2234f8f62c
4 changed files with 18 additions and 15 deletions

View File

@@ -335,16 +335,19 @@ class language{
{
if(null == $this->lanlist)
{
$handle = opendir(e_LANGUAGEDIR);
$fl = e107::getFile();
$dirArray = $fl->get_dirs(e_LANGUAGEDIR);
// $handle = opendir(e_LANGUAGEDIR);
$lanlist = array();
while ($file = readdir($handle))
// while ($file = readdir($handle))
foreach($dirArray as $file)
{
if ($file != '.' && $file != '..' && is_readable(e_LANGUAGEDIR.$file.'/'.$file.'.php'))
{
$lanlist[] = $file;
}
}
closedir($handle);
// closedir($handle);
$this->lanlist = array_intersect($lanlist,$this->list);
}