Skip to content

Commit

Permalink
Undefined variable: markdown in Mailable.php
Browse files Browse the repository at this point in the history
Fix for error Undefined variable: markdown in Mailable.php (line 226)
  • Loading branch information
MPaap authored Jun 7, 2017
1 parent de8084d commit 2f6db9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ protected function buildMarkdownView()

return [
'html' => $markdown->render($this->markdown, $data),
'text' => $this->buildMarkdownText(),
'text' => $this->buildMarkdownText($markdown, $data),
];
}

Expand All @@ -219,7 +219,7 @@ public function buildViewData()
*
* @return string
*/
protected function buildMarkdownText()
protected function buildMarkdownText($markdown, $data)
{
return isset($this->textView)
? $this->textView
Expand Down

0 comments on commit 2f6db9e

Please sign in to comment.