Update gettext : add spaces
DomCi : remove line too longs on all the files git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -74,28 +74,28 @@ class cachefile
|
||||
public function cachedir ()
|
||||
{
|
||||
if (! isset ($this->directory) || $this->directory === "")
|
||||
throw new Exception (dgettext("domframework",
|
||||
throw new Exception (dgettext ("domframework",
|
||||
"No cache directory defined"), 500);
|
||||
if (! file_exists ($this->directory))
|
||||
{
|
||||
// Need to create the cache dir
|
||||
$parent = realpath (dirname ($this->directory));
|
||||
if (! is_writeable (dirname ($this->directory)))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
"Directory %s is not writable : can not create cache directory"),
|
||||
$parent), 500);
|
||||
if (!mkdir ($this->directory))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
"Can not create cache directory %s"),
|
||||
$this->directory), 500);
|
||||
chmod ($this->directory, 0777);
|
||||
}
|
||||
if (! is_writable ($this->directory))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
"Cache directory %s is not writable"),
|
||||
$this->directory), 500);
|
||||
if (! is_readable ($this->directory))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
"Cache directory %s is not readable"),
|
||||
$this->directory), 500);
|
||||
if (!file_exists ($this->directory."/.htaccess"))
|
||||
@@ -114,7 +114,7 @@ class cachefile
|
||||
if ($this->nocache !== false)
|
||||
return false;
|
||||
if ($data === false)
|
||||
throw new Exception (dgettext("domframework",
|
||||
throw new Exception (dgettext ("domframework",
|
||||
"Can not store FALSE in cache"), 500);
|
||||
try
|
||||
{
|
||||
@@ -158,11 +158,11 @@ class cachefile
|
||||
if (!file_exists ($fileCache))
|
||||
return false;
|
||||
if (!is_readable ($fileCache))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
"File cache %s is not readable"),
|
||||
$fileCache), 500);
|
||||
if (!is_writable ($fileCache))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext ("domframework",
|
||||
"File cache %s is not writable"),
|
||||
$fileCache), 500);
|
||||
// Lock : waiting the reconstruction of the cache by another process
|
||||
|
||||
Reference in New Issue
Block a user