aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_styles.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-02-12 17:17:08 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-02-12 17:17:08 +0000
commit43e7ac547c9246f796eba4dc011ededa517f5c1d (patch)
treeac1bbf41b2fd85845c4f38499aed25373a25a0dd /phpBB/includes/acp/acp_styles.php
parentddf61cbaef70233417fe051f8f2c5cf0e40778f8 (diff)
downloadforums-43e7ac547c9246f796eba4dc011ededa517f5c1d.tar
forums-43e7ac547c9246f796eba4dc011ededa517f5c1d.tar.gz
forums-43e7ac547c9246f796eba4dc011ededa517f5c1d.tar.bz2
forums-43e7ac547c9246f796eba4dc011ededa517f5c1d.tar.xz
forums-43e7ac547c9246f796eba4dc011ededa517f5c1d.zip
- 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
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
-rw-r--r--phpBB/includes/acp/acp_styles.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index f9c159fb2e..565e9ba489 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -525,12 +525,14 @@ pagination_sep = \'{PAGINATION_SEP}\'
// Clean up this code
$imglang = '';
$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))
{
- 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))
{
$imglang = $file;