Merge pull request #1877 from nickvergessen/ticket/12023

Ticket/12023 New css files missing after update
This commit is contained in:
Nils Adermann 2013-11-18 15:28:57 -08:00
commit c31787436e
2 changed files with 3 additions and 1 deletions

View file

@ -569,7 +569,7 @@ function phpbb_ignore_new_file_on_update($phpbb_root_path, $file)
if (!$ignore_new_file && strpos($file, 'styles/') === 0) if (!$ignore_new_file && strpos($file, 'styles/') === 0)
{ {
$dirs = explode('/', $file); $dirs = explode('/', $file);
if ($dirs >= 5) if (sizeof($dirs) >= 5)
{ {
list($styles_dir, $style_name, $template_component, $language_iso) = explode('/', $file); list($styles_dir, $style_name, $template_component, $language_iso) = explode('/', $file);
if ($template_component == 'theme' && $language_iso !== 'images') if ($template_component == 'theme' && $language_iso !== 'images')

View file

@ -25,6 +25,8 @@ class phpbb_functions_install_ignore_new_file_on_update_test extends phpbb_test_
array('styles/prosilver/theme/en/icon_user_online.gif', false), array('styles/prosilver/theme/en/icon_user_online.gif', false),
array('styles/prosilver/theme/languagewillneverexist/icon_user_online.gif', true), array('styles/prosilver/theme/languagewillneverexist/icon_user_online.gif', true),
array('styles/prosilver/theme/imageset.css', false),
); );
} }