[feature/twig] Prevent errors from mkdir if the dir already exists

PHPBB3-11598
This commit is contained in:
Nathaniel Guse 2013-07-02 13:43:02 -05:00
parent 2507c648fe
commit 52bce2ce11

View file

@ -93,9 +93,12 @@ class phpbb_test_case_helpers
} }
public function makedirs($path) public function makedirs($path)
{
if (!is_dir($path))
{ {
mkdir($path, 0777, true); mkdir($path, 0777, true);
} }
}
static public function get_test_config() static public function get_test_config()
{ {