Cosmetics changes : remove ending lines spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
14
config.php
14
config.php
@@ -76,12 +76,12 @@ class config
|
||||
if (@file_put_contents ($this->confFile,
|
||||
"<?php\r\n\$conf = array ();\r\n")
|
||||
=== FALSE)
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
"No configuration file '%s' available and it can't be created"),
|
||||
$this->confFile), 500);
|
||||
}
|
||||
elseif (! is_readable ($this->confFile))
|
||||
throw new Exception (sprintf ( dgettext("domframework",
|
||||
throw new Exception (sprintf ( dgettext("domframework",
|
||||
"The configuration file '%s' is not readable"),
|
||||
$this->confFile));
|
||||
$conf = array ();
|
||||
@@ -145,11 +145,11 @@ class config
|
||||
}
|
||||
elseif (! is_readable ($this->confFile))
|
||||
throw new Exception (sprintf (
|
||||
dgettext("domframework",
|
||||
dgettext("domframework",
|
||||
"The configuration file '%s' is not readable"),
|
||||
$this->confFile), 500);
|
||||
if (!is_writeable ($this->confFile))
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
"Configuration file '%s' is write protected"),
|
||||
$this->confFile), 500);
|
||||
$conf = array ();
|
||||
@@ -164,7 +164,7 @@ class config
|
||||
$txt .= ");\r\n";
|
||||
|
||||
if (@file_put_contents ($this->confFile, $txt, LOCK_EX) === FALSE)
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
throw new Exception (sprintf (dgettext("domframework",
|
||||
"Can't save configuration file '%s'"),
|
||||
$this->confFile), 500);
|
||||
return TRUE;
|
||||
@@ -200,7 +200,7 @@ class config
|
||||
$phpcode .= "),\r\n";
|
||||
}
|
||||
else
|
||||
throw new Exception (dgettext("domframework",
|
||||
throw new Exception (dgettext("domframework",
|
||||
"Config : missing type ").gettype ($val), 500);
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ class config
|
||||
$val = trim ($val);
|
||||
if (strpos ($val, "=>") !== false)
|
||||
{
|
||||
// Associated array
|
||||
// Associated array
|
||||
unset ($values[$key]);
|
||||
list ($key1, $val1) = explode ("=>", $val);
|
||||
$key1 = trim ($key1);
|
||||
|
||||
Reference in New Issue
Block a user