mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/twig] Prevent errors from mkdir if the dir already exists
PHPBB3-11598
This commit is contained in:
@@ -94,7 +94,10 @@ class phpbb_test_case_helpers
|
||||
|
||||
public function makedirs($path)
|
||||
{
|
||||
mkdir($path, 0777, true);
|
||||
if (!is_dir($path))
|
||||
{
|
||||
mkdir($path, 0777, true);
|
||||
}
|
||||
}
|
||||
|
||||
static public function get_test_config()
|
||||
|
Reference in New Issue
Block a user