aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_styles.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-07-19 20:38:38 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-07-19 20:38:38 +0000
commit75a51629454e971fd85118647d05a2a7f39931ad (patch)
tree2a22645ce7b2ccfdbe62b85515f252af3cd9e131 /phpBB/includes/acp/acp_styles.php
parent870991c0608caf7467018245a0a4e1f1d55efd12 (diff)
downloadforums-75a51629454e971fd85118647d05a2a7f39931ad.tar
forums-75a51629454e971fd85118647d05a2a7f39931ad.tar.gz
forums-75a51629454e971fd85118647d05a2a7f39931ad.tar.bz2
forums-75a51629454e971fd85118647d05a2a7f39931ad.tar.xz
forums-75a51629454e971fd85118647d05a2a7f39931ad.zip
again, a lot of bug fixes
git-svn-id: file:///svn/phpbb/trunk@7909 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
-rw-r--r--phpBB/includes/acp/acp_styles.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 91b185c52b..1e0e3af54a 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -1351,7 +1351,7 @@ parse_css_file = {PARSE_CSS_FILE}
{
while (($file = readdir($dp)) !== false)
{
- if (!is_file($dir . '/' . $file) && !is_link($dir . '/' . $file) && $file[0] != '.' && strtoupper($file) != 'CVS')
+ if ($file[0] != '.' && strtoupper($file) != 'CVS' && !is_file($dir . '/' . $file) && !is_link($dir . '/' . $file))
{
$langs[] = $file;
}
@@ -2429,6 +2429,11 @@ parse_css_file = {PARSE_CSS_FILE}
$file_ary = array();
while ($file = readdir($dp))
{
+ if ($file[0] == '.')
+ {
+ continue;
+ }
+
if (is_file($phpbb_root_path . 'cache/' . $file) && (strpos($file, $cache_prefix) === 0))
{
$file_ary[] = str_replace('.', '/', preg_replace('#^' . preg_quote($cache_prefix, '#') . '_(.*?)\.html\.' . $phpEx . '$#i', '\1', $file));