]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update lib/public/util.php
authorChristian Koch <koch.chris@gmail.com>
Wed, 6 Feb 2013 16:22:07 +0000 (17:22 +0100)
committerChristian Koch <koch.chris@gmail.com>
Wed, 6 Feb 2013 16:22:07 +0000 (17:22 +0100)
The call of \OC_MAIL::send() overrides all optional parameters. This is not necessary. But if you want to have html mail templates (what I'm thinking about) it is a real problem

lib/public/util.php

index a78a52f326edc256d380f414687053bdc421bb67..968ca891b4c83cc160e7d836a9fda55eaad04876 100644 (file)
@@ -59,9 +59,9 @@ class Util {
         * @param string $fromname
         * @param bool $html
         */
-       public static function sendMail( $toaddress, $toname, $subject, $mailtext, $fromaddress, $fromname, $html=0, $altbody='', $ccaddress='', $ccname='', $bcc='') {
+       public static function sendMail( $toaddress, $toname, $subject, $mailtext, $fromaddress, $fromname, $html = 0, $altbody = '', $ccaddress = '', $ccname = '', $bcc = '') {
                // call the internal mail class
-               \OC_MAIL::send($toaddress, $toname, $subject, $mailtext, $fromaddress, $fromname, $html = 0, $altbody = '', $ccaddress = '', $ccname = '', $bcc = '');
+               \OC_MAIL::send($toaddress, $toname, $subject, $mailtext, $fromaddress, $fromname, $html, $altbody, $ccaddress, $ccname, $bcc);
        }
 
        /**