mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 00:25:19 +02:00
[ticket/11491] Copy files back only if we saved them previously
PHPBB3-11491
This commit is contained in:
parent
3436e3f102
commit
13ca1f5598
@ -92,14 +92,20 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
|
|||||||
{
|
{
|
||||||
global $phpbb_root_path;
|
global $phpbb_root_path;
|
||||||
|
|
||||||
|
if (file_exists($phpbb_root_path . 'store/temp_ext/'))
|
||||||
|
{
|
||||||
// Copy back the board installed extensions from the temp directory
|
// Copy back the board installed extensions from the temp directory
|
||||||
self::$helper->copy_dir($phpbb_root_path . 'store/temp_ext/', $phpbb_root_path . 'ext/');
|
self::$helper->copy_dir($phpbb_root_path . 'store/temp_ext/', $phpbb_root_path . 'ext/');
|
||||||
|
}
|
||||||
|
|
||||||
// Remove all of the files we copied around (from board ext -> temp_ext, from test ext -> board ext)
|
// Remove all of the files we copied around (from board ext -> temp_ext, from test ext -> board ext)
|
||||||
self::$helper->remove_files(self::$copied_files);
|
self::$helper->remove_files(self::$copied_files);
|
||||||
|
|
||||||
|
if (file_exists($phpbb_root_path . 'store/temp_ext/'))
|
||||||
|
{
|
||||||
self::$helper->empty_dir($phpbb_root_path . 'store/temp_ext/');
|
self::$helper->empty_dir($phpbb_root_path . 'store/temp_ext/');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function test_list()
|
public function test_list()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user