mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
- The working directory can't be trusted, we give the path explictly instead
git-svn-id: file:///svn/phpbb/trunk@5550 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -525,12 +525,14 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
|||||||
// Clean up this code
|
// Clean up this code
|
||||||
$imglang = '';
|
$imglang = '';
|
||||||
$imagesetlist = array('nolang' => array(), 'lang' => array());
|
$imagesetlist = array('nolang' => array(), 'lang' => array());
|
||||||
$dp = opendir("{$phpbb_root_path}styles/$imageset_path/imageset");
|
|
||||||
|
$dir = "{$phpbb_root_path}styles/$imageset_path/imageset";
|
||||||
|
$dp = opendir($dir);
|
||||||
while ($file = readdir($dp))
|
while ($file = readdir($dp))
|
||||||
{
|
{
|
||||||
if (!is_file($file) && !is_link($file) && $file{0} != '.' && strtoupper($file) != 'CVS' && !sizeof($imagesetlist['lang']))
|
if (!is_file($dir . $file) && !is_link($dir . $file) && $file{0} != '.' && strtoupper($file) != 'CVS' && !sizeof($imagesetlist['lang']))
|
||||||
{
|
{
|
||||||
$dp2 = opendir("{$phpbb_root_path}styles/$imageset_path/imageset/$file");
|
$dp2 = opendir("$dir/$file");
|
||||||
while ($file2 = readdir($dp2))
|
while ($file2 = readdir($dp2))
|
||||||
{
|
{
|
||||||
$imglang = $file;
|
$imglang = $file;
|
||||||
|
Reference in New Issue
Block a user