Add missing global $wgEnotifUseRealName. Fix for undefined variable notice in r43155.
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 3 Nov 2008 22:22:46 +0000 (22:22 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 3 Nov 2008 22:22:46 +0000 (22:22 +0000)
includes/UserMailer.php

index 010bc50..69434d4 100644 (file)
@@ -567,7 +567,7 @@ class EmailNotification {
         * @private
         */
        function sendPersonalised( $watchingUser ) {
-               global $wgLang;
+               global $wgLang, $wgEnotifUseRealName;
                // From the PHP manual:
                //     Note:  The to parameter cannot be an address in the form of "Something <someone@example.com>".
                //     The mail command will not parse this properly while talking with the MTA.