diff --git a/.gitattributes b/.gitattributes index b326fdb8010fa5e40ab7eee72d85fd93964d4033..f90e8cda2d320a72d056baabe1ec624734fda0ff 100644 --- a/.gitattributes +++ b/.gitattributes @@ -72,6 +72,7 @@ dist/images/documents-48.png -text dist/images/documents-48_rtl.png -text dist/images/edit.gif -text dist/images/effacer-cache-24.gif -text +dist/images/envoi-message-24.gif -text dist/images/feed.png -text dist/images/fiche-perso-24.gif -text dist/images/fiche-perso.png -text diff --git a/dist/images/envoi-message-24.gif b/dist/images/envoi-message-24.gif new file mode 100644 index 0000000000000000000000000000000000000000..eb526c3ee3549debc764b75d10ceff62edc65661 Binary files /dev/null and b/dist/images/envoi-message-24.gif differ diff --git a/ecrire/exec/message_edit.php b/ecrire/exec/message_edit.php index 3c6984f67c5de46dc060d854c370d66a2f4236da..f32a2e01bc095924f7008d39421247fe1f8d0f04 100644 --- a/ecrire/exec/message_edit.php +++ b/ecrire/exec/message_edit.php @@ -63,6 +63,15 @@ function exec_message_edit_dist() debut_gauche(); + + if($type == 'normal' AND $dest) { + $nom = spip_fetch_array(spip_query("SELECT nom, email FROM spip_auteurs WHERE id_auteur=$dest")); + if (strlen($nom['email']) > 3) { + echo "<div align='center'>"; + icone(_T('info_envoyer_message_prive'), "mailto:".$nom['email'], "envoi-message-24.gif"); + echo "</div>"; + } + } debut_droite();