Skip to content

Commit

Permalink
Merge pull request #22 from robertboloc/feature-testing-fixes
Browse files Browse the repository at this point in the history
Fix serverUrl invokable call in the mailer plugin
  • Loading branch information
robertmarsal authored Feb 3, 2017
2 parents 29b7a0f + 5ae5142 commit 61065bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/RbComment/Mvc/Controller/Plugin/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ public function __invoke($comment)

$htmlContent = $comment->content;
$htmlContent .= '<br><br>';
$htmlContent .= '<a href="' . $this->serverUrlHelper() . $comment->uri . '#rbcomment-' . $comment->id . '">' .
$mailerConfig['context_link_text'] .
'</a>';
$htmlContent .=
'<a href="' . $this->serverUrlHelper->__invoke() . $comment->uri . '#rbcomment-' . $comment->id . '">' .
$mailerConfig['context_link_text'] .
'</a>';

$html = new MimePart($htmlContent);
$html->type = "text/html";
Expand Down

0 comments on commit 61065bc

Please sign in to comment.