mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
[ticket/12325] Generate the list of the deleted files and folders
https://tracker.phpbb.com/browse/PHPBB3-12325 PHPBB3-12325
This commit is contained in:
committed by
Tristan Darricau
parent
324daf72fe
commit
c5f5520013
@@ -45,6 +45,10 @@ if (sizeof($package->old_packages))
|
||||
$package->get('patch_directory') . '/phpBB-' . $dest_package_filename . $package->get('new_version_number') . '.patch',
|
||||
$_package_name
|
||||
);
|
||||
$diff_file_changes[$_package_name]['deleted'] = $package->collect_deleted_files(
|
||||
$package->get('patch_directory') . '/phpBB-' . $dest_package_filename . $package->get('new_version_number') . '.deleted',
|
||||
$_package_name
|
||||
);
|
||||
}
|
||||
|
||||
// Now put those files determined within the correct directories
|
||||
@@ -292,6 +296,15 @@ $update_info = array(
|
||||
$index_contents .= "\t'binary' => array(),\n";
|
||||
}
|
||||
|
||||
if (sizeof($file_contents['deleted']))
|
||||
{
|
||||
$index_contents .= "\t'deleted' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['deleted']) . "',\n\t),\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$index_contents .= "\t'deleted' => array(),\n";
|
||||
}
|
||||
|
||||
$index_contents .= ");\n";
|
||||
|
||||
$fp = fopen($dest_filename_dir . '/install/update/index.php', 'wt');
|
||||
|
Reference in New Issue
Block a user