added wfDeprecated() to wfRFC822Phrase() and userMailer(); tag for removal in 1.19...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 6 Nov 2010 20:10:55 +0000 (20:10 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 6 Nov 2010 20:10:55 +0000 (20:10 +0000)
includes/UserMailer.php

index 4121245..3967406 100644 (file)
@@ -622,13 +622,18 @@ class EmailNotification {
 
 } # end of class EmailNotification
 
-/**
+/**@{
  * Backwards compatibility functions
+ *
+ * @deprecated Use UserMailer methods; will be removed in 1.19
  */
 function wfRFC822Phrase( $s ) {
+       wfDeprecated( __FUNCTION__ );
        return UserMailer::rfc822Phrase( $s );
 }
 
 function userMailer( $to, $from, $subject, $body, $replyto=null ) {
+       wfDeprecated( __FUNCTION__ );
        return UserMailer::send( $to, $from, $subject, $body, $replyto );
 }
+/**@}*/
\ No newline at end of file