Add NAMESPACE support (not activated, but just needed to add the namespace on top of file)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4630 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -108,22 +108,22 @@ class ratelimitfile extends ratelimit
|
||||
if (file_exists ($this->storageDir))
|
||||
{
|
||||
if (! is_dir ($this->storageDir))
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"storageDir '%s' is not a directory"),
|
||||
$this->storageDir), 500);
|
||||
if (! is_readable ($this->storageDir))
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"storageDir '%s' is not readable"),
|
||||
$this->storageDir), 500);
|
||||
if (! is_writeable ($this->storageDir))
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"storageDir '%s' is not writeable"),
|
||||
$this->storageDir), 500);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (@mkdir ($this->storageDir, 0777, true) === false)
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"Can't create '%s' storageDir"),
|
||||
$this->storageDir), 500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user