mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- Proper iteration of files
git-svn-id: file:///svn/phpbb/trunk@5594 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0e8e0b6504
commit
cbfe138cdc
1 changed files with 3 additions and 3 deletions
|
@ -307,7 +307,7 @@ class acp_board
|
|||
$auth_plugins = array();
|
||||
|
||||
$dp = opendir($phpbb_root_path . 'includes/auth');
|
||||
while ($file = readdir($dp))
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file))
|
||||
{
|
||||
|
@ -438,7 +438,7 @@ class acp_board
|
|||
$auth_plugins = array();
|
||||
|
||||
$dp = opendir($phpbb_root_path . 'includes/auth');
|
||||
while ($file = readdir($dp))
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file))
|
||||
{
|
||||
|
@ -575,7 +575,7 @@ class acp_board
|
|||
$search_plugins = array();
|
||||
|
||||
$dp = opendir($phpbb_root_path . 'includes/search');
|
||||
while ($file = readdir($dp))
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if ((preg_match('#\.' . $phpEx . '$#', $file)) && ($file != "search.$phpEx"))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue