[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / inc / mail.php
diff --git a/www/ecrire/inc/mail.php b/www/ecrire/inc/mail.php
new file mode 100644 (file)
index 0000000..0edf5e5
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2011                                                *
+ *  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
+##
+
+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
+       function envoyer_mail() {
+               $args = func_get_args();
+               if (_FUNCTION_ENVOYER_MAIL)
+                       return call_user_func_array(_FUNCTION_ENVOYER_MAIL, $args);
+       }
+}
+
+
+?>