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:
2019-05-23 14:19:30 +00:00
parent a79b59685f
commit 17168aaaef
39 changed files with 588 additions and 565 deletions

View File

@@ -42,7 +42,7 @@ class authsympa extends auth
public function __construct ()
{
if (! class_exists ("SoapClient"))
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"No SOAP PHP library available"), 500);
}
@@ -50,7 +50,7 @@ class authsympa extends auth
public function connect ()
{
if ($this->wsdl === null)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"No WSDL provided to Sympa auth"), 401);
$this->client = new \SoapClient($this->wsdl);
}
@@ -61,20 +61,20 @@ class authsympa extends auth
public function authentication ($email, $password)
{
if ($this->client === null)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"The SOAP connection is not opened"), 401);
if ($this->list === null)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"The list to check is not defined"), 401);
$this->authkey = $this->client->login ($email, $password);
if ($this->authkey === null)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"Can't connect with provided email/password to sympa"),
401);
$rc = $this->client->authenticateAndRun ($email, $this->authkey,
'amI', array ($this->list, $this->function, $email));
if ($rc === null || $rc === false)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"User not in Sympa list or bad password"), 401);
$this->details = array ("email"=>$email);
return $rc;
@@ -92,7 +92,7 @@ class authsympa extends auth
@param string $newpassword The new password to be recorded */
public function changepassword ($oldpassword, $newpassword)
{
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"The password can't be change for SYMPA users"),
405);
}
@@ -104,7 +104,7 @@ class authsympa extends auth
@param string $newpassword The new password to be recorded */
public function overwritepassword ($email, $newpassword)
{
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"The password can't be overwrite for Sympa users"),
405);
}