mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11927] Correctly add new files on update
Currently we ignore language and style files when the directory where they go to do not exist. However in 3.1 we introduce some new sub directories: * language/en/email/short/ * styles/prosilver/theme/en/ So we need to change our check to look whether the language or style exist, rather then the parent directory. PHPBB3-11927
This commit is contained in:
@@ -1311,7 +1311,7 @@ class install_update extends module
|
||||
}
|
||||
}*/
|
||||
|
||||
if (file_exists($phpbb_root_path . dirname($file)) || (strpos($file, 'styles/') !== 0 && strpos($file, 'language/') !== 0))
|
||||
if (!ignore_new_file_on_update($phpbb_root_path, $file))
|
||||
{
|
||||
$this->get_custom_info($update_list['new'], $file);
|
||||
$update_list['new'][] = array('filename' => $file, 'custom' => false);
|
||||
|
Reference in New Issue
Block a user