ratelimitfile : don't display the error if it is not possible to create the directory (the exception raised is sufficient)

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2938 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-07-21 08:53:43 +00:00
parent 9e922ac748
commit 7d165d0ea4

View File

@@ -109,7 +109,7 @@ class ratelimitfile extends ratelimit
}
else
{
if (mkdir ($this->storageDir, 0777, true) === false)
if (@mkdir ($this->storageDir, 0777, true) === false)
throw new Exception (sprintf (dgettext ("domframework",
"Can't create '%s' storageDir"),
$this->storageDir), 500);