mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
[feature/controller] Use warning instead of echo for copy() and unlink()
PHPBB3-10864
This commit is contained in:
@@ -46,10 +46,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
|||||||
|
|
||||||
foreach (self::$fixtures as $fixture)
|
foreach (self::$fixtures as $fixture)
|
||||||
{
|
{
|
||||||
if (!copy("tests/functional/fixtures/ext/$fixture", "{$phpbb_root_path}ext/$fixture"))
|
copy("tests/functional/fixtures/ext/$fixture", "{$phpbb_root_path}ext/$fixture");
|
||||||
{
|
|
||||||
echo 'Could not copy file ' . $fixture;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,10 +59,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
|||||||
global $phpbb_root_path;
|
global $phpbb_root_path;
|
||||||
foreach (self::$fixtures as $fixture)
|
foreach (self::$fixtures as $fixture)
|
||||||
{
|
{
|
||||||
if (!unlink("{$phpbb_root_path}ext/$fixture"))
|
unlink("{$phpbb_root_path}ext/$fixture");
|
||||||
{
|
|
||||||
echo 'Could not delete file ' . $fixture;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rmdir("{$phpbb_root_path}ext/foo/bar/config");
|
rmdir("{$phpbb_root_path}ext/foo/bar/config");
|
||||||
|
Reference in New Issue
Block a user