mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
[ticket/12023] Correctly compare the size of the array in ignore_new_files
PHPBB3-12023
This commit is contained in:
parent
632d6e9621
commit
5fe822021b
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue