forked from ZwiiCMS-Team/ZwiiCampus
Petites corrections
This commit is contained in:
parent
cc0c098ea8
commit
44cfe0433a
@ -1198,7 +1198,6 @@ class common
|
||||
* @param string|array $to Destinataire
|
||||
* @param string $subject Sujet
|
||||
* @param string $content Contenu
|
||||
* @return bool
|
||||
*/
|
||||
public function sendMail($to, $subject, $content, $replyTo = null, $from = 'no-reply@localhost')
|
||||
{
|
||||
@ -1456,16 +1455,12 @@ class common
|
||||
switch ($this->getData(['user', $userId, 'signature'])) {
|
||||
case 1:
|
||||
return $userId;
|
||||
break;
|
||||
case 2:
|
||||
return $this->getData(['user', $userId, 'pseudo']);
|
||||
break;
|
||||
case 3:
|
||||
return $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']);
|
||||
break;
|
||||
case 4:
|
||||
return $this->getData(['user', $userId, 'lastname']) . ' ' . $this->getData(['user', $userId, 'firstname']);
|
||||
break;
|
||||
default:
|
||||
return $this->getData(['user', $userId, 'firstname']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user