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:
16
inifile.php
16
inifile.php
@@ -17,10 +17,10 @@ class inifile
|
||||
public function getFile ($file, $sections=false)
|
||||
{
|
||||
if (! file_exists ($file))
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"File '%s' not found"), $file), 404);
|
||||
if (! is_readable ($file))
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"File '%s' not readable"), $file), 500);
|
||||
return $this->getString (file_get_contents ($file, $sections));
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class inifile
|
||||
{
|
||||
if (! is_array ($array))
|
||||
throw new \Exception (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"inifile::setString : provided data is not an array"),
|
||||
500);
|
||||
$content = "";
|
||||
@@ -85,7 +85,7 @@ class inifile
|
||||
{
|
||||
if (! is_array ($sub))
|
||||
throw new \Exception (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"inifile::setString : provided data is not an array"),
|
||||
500);
|
||||
$content .= "[$section]\n";
|
||||
@@ -97,7 +97,7 @@ class inifile
|
||||
{
|
||||
if (!is_scalar ($v) && ! is_null ($v))
|
||||
throw new \Exception (sprintf (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"Provided value for '%s' is not scalar"),
|
||||
$key), 500);
|
||||
if ($v === null) $v = "null";
|
||||
@@ -123,7 +123,7 @@ class inifile
|
||||
{
|
||||
if (!is_scalar ($v) && ! is_null ($v))
|
||||
throw new \Exception (sprintf (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"Provided value for '%s' is not scalar"),
|
||||
$key), 500);
|
||||
if ($v === null) $v = "null";
|
||||
@@ -155,11 +155,11 @@ class inifile
|
||||
$dir = basename ($file);
|
||||
if (! file_exists ($dir) || ! is_readable ($dir) || ! is_writeable ($dir))
|
||||
throw new \Exception (sprintf (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"Directory '%s' available or not readable or not writeable"),
|
||||
$dir), 500);
|
||||
if (file_exists ($file) && ! is_writeable ($file))
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"File '%s' is not writeable"), $file),
|
||||
500);
|
||||
$content = $this->setString ($array, $sections);
|
||||
|
||||
Reference in New Issue
Block a user