[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / ecrire / inc / mail.php
index c2f717c..bc8d973 100644 (file)
@@ -3,28 +3,36 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2016                                                *
+ *  Copyright (c) 2001-2017                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
  *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
 \***************************************************************************/
 
-##
-## Module de compatibilite ascendante : desormais inc/envoyer_mail
-##
+/**
+ * Module de compatibilite ascendante : desormais inc/envoyer_mail
+ *
+ * @deprecated Utiliser inc/envoyer_mail
+ * @package SPIP\Core\Mail
+ */
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
 if (!function_exists('envoyer_mail')) {
        define('_FUNCTION_ENVOYER_MAIL', charger_fonction('envoyer_mail', 'inc'));
-// http://doc.spip.org/@envoyer_mail
+       /**
+        * Envoie un mail.
+        *
+        * @uses inc_envoyer_mail_dist()
+        * @deprecated Utiliser inc_envoyer_mail_dist() via charger_fonction()
+        **/
        function envoyer_mail() {
                $args = func_get_args();
-               if (_FUNCTION_ENVOYER_MAIL)
+               if (_FUNCTION_ENVOYER_MAIL) {
                        return call_user_func_array(_FUNCTION_ENVOYER_MAIL, $args);
+               }
        }
 }
-
-
-?>