mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
- Bug 1301
git-svn-id: file:///svn/phpbb/trunk@5743 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -103,7 +103,7 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && $language == '')
|
||||
if ($language == '')
|
||||
{
|
||||
$dir = @opendir($phpbb_root_path . 'language');
|
||||
while ($file = readdir($dir))
|
||||
while (($file = readdir($dir)) !== false)
|
||||
{
|
||||
$path = $phpbb_root_path . 'language/' . $file;
|
||||
|
||||
@@ -168,7 +168,7 @@ class module
|
||||
$dir = @opendir('.');
|
||||
|
||||
$setmodules = 1;
|
||||
while ($file = readdir($dir))
|
||||
while (($file = readdir($dir)) !== false)
|
||||
{
|
||||
if (preg_match('#^install_(.*?)\.' . $phpEx . '$#', $file))
|
||||
{
|
||||
|
Reference in New Issue
Block a user