aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/install_update.php28
1 files changed, 7 insertions, 21 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php
index 0659e1f364..7b0e405a0f 100644
--- a/phpBB/install/install_update.php
+++ b/phpBB/install/install_update.php
@@ -441,33 +441,19 @@ class install_update extends module
else if (!$recache)
{
$last_change = $theme['theme_mtime'];
- $file_list = @glob("{$phpbb_root_path}styles/{$theme['theme_path']}/theme/*.css", GLOB_NOSORT);
+ $dir = @opendir("{$phpbb_root_path}styles/{$theme['theme_path']}/theme");
- if ($file_list === false || $file_list === NULL)
+ if ($dir)
{
- $file_list = array();
- $dir = @opendir("{$phpbb_root_path}styles/{$theme['theme_path']}/theme");
-
- if ($dir)
+ while (($entry = readdir($dir)) !== false)
{
- while (($entry = readdir($dir)) !== false)
+ if (substr(strrchr($entry, '.'), 1) == 'css' && $last_change < @filemtime("{$phpbb_root_path}styles/{$theme['theme_path']}/theme/{$entry}"))
{
- if (substr(strrchr($entry, '.'), 1) == 'css')
- {
- $file_list[] = "{$phpbb_root_path}styles/{$theme['theme_path']}/theme/{$entry}";
- }
+ $recache = true;
+ break;
}
- closedir($dir);
- }
- }
-
- foreach ($file_list as $file)
- {
- if ($last_change < @filemtime($file))
- {
- $recache = true;
- break;
}
+ closedir($dir);
}
}