Skip to content

Commit

Permalink
Change to use JFactory::getMailer() (#6830)
Browse files Browse the repository at this point in the history
Co-authored-by: jose ferreira lopez <joseferreira@irix.es>
  • Loading branch information
j0se and jose ferreira lopez committed Jun 23, 2020
1 parent 9a8b6f4 commit 1010923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/com_kunena/controllers/topic.php
Expand Up @@ -111,7 +111,7 @@ public function setinline()

$this->changeinline($instances, '1');
}

/**
* Set inline to 0 on one attachment object.
*
Expand All @@ -129,7 +129,7 @@ public function removeinlineonattachment()

$this->changeinline($instance, '0');
}

/**
* Set inline to 0 or 1 on the attachment object.
*
Expand Down Expand Up @@ -2218,7 +2218,7 @@ public function report()
jimport('joomla.environment.uri');
$msglink = Uri::getInstance()->toString(array('scheme', 'host', 'port')) . $target->getPermaUrl(null, false);

$mail = \Joomla\CMS\Mail\Mail::getInstance();
$mail = JFactory::getMailer();
$mail->setSender(array($this->config->getEmail(), $mailsender));
$mail->setSubject($mailsubject);
$mail->addReplyTo($this->me->email, $this->me->username);
Expand Down

0 comments on commit 1010923

Please sign in to comment.