Fait & à faire sur le Wiki
De Topo Paralpinisme
Révision datée du 5 février 2017 à 22:47 par Jmp (discussion | contributions)
A Faire
- Modifier l'extension Kartographer pour éviter l'arrondi des coordonnées lors de l'ouverture du point dans une autre carte (Bing, Maps, ...)
Fait
Fonction send mail
Pour éviter les erreurs à l'envoi des mails par la fonction mail() toute pourrie de chez Online.net Modification du fichier /includes/mail/MailAdress.php
class MailAddress {
/**
* @param string $address String with an email address, or a User object
* @param string $name Human-readable name if a string address is given
* @param string $realName Human-readable real name if a string address is given
*/
function __construct( $address, $name = null, $realName = null ) {
if ( is_object( $address ) && $address instanceof User ) {
// Old calling format, now deprecated
wfDeprecated( __METHOD__ . ' with a User object', '1.24' );
$this->address = $address->getEmail();
// modification JMP pour online.net
//$this->name = $address->getName();
//$this->realName = $address->getRealName();
$this->name = null;
$this->realName = null;
} else {
$this->address = strval( $address );
//$this->name = strval( $name );
//$this->realName = strval( $realName );
$this->name = null;
$this->realName = null;
}
}