mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 08:35:31 +02:00
Merge pull request #4055 from CHItA/ticket/14326
[ticket/14326] Decode diffed file's content during update
This commit is contained in:
commit
5d0e8eaf09
@ -100,7 +100,7 @@ class show_file_status extends task_base
|
|||||||
{
|
{
|
||||||
$this->file_updater->create_new_file(
|
$this->file_updater->create_new_file(
|
||||||
$filename,
|
$filename,
|
||||||
$this->cache->get('_file_' . md5($filename)),
|
base64_decode($this->cache->get('_file_' . md5($filename))),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -164,20 +164,20 @@ class update_files extends task_base
|
|||||||
{
|
{
|
||||||
case 'delete':
|
case 'delete':
|
||||||
$this->file_updater->delete_file($path);
|
$this->file_updater->delete_file($path);
|
||||||
break;
|
break;
|
||||||
case 'new':
|
case 'new':
|
||||||
$this->file_updater->create_new_file($path, $new_path . $path);
|
$this->file_updater->create_new_file($path, $new_path . $path);
|
||||||
break;
|
break;
|
||||||
case 'update_without_diff':
|
case 'update_without_diff':
|
||||||
$this->file_updater->update_file($path, $new_path . $path);
|
$this->file_updater->update_file($path, $new_path . $path);
|
||||||
break;
|
break;
|
||||||
case 'update_with_diff':
|
case 'update_with_diff':
|
||||||
$this->file_updater->update_file(
|
$this->file_updater->update_file(
|
||||||
$path,
|
$path,
|
||||||
$this->cache->get('_file_' . md5($path)),
|
base64_decode($this->cache->get('_file_' . md5($path))),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save progress
|
// Save progress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user