From 2206d5223606f5a24e7e3bf0ba1f25b343dfcc6b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 11 Dec 2019 08:22:36 -0600 Subject: [PATCH] rename variable --- src/Illuminate/Mail/Markdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Mail/Markdown.php b/src/Illuminate/Mail/Markdown.php index f6b4a719b2b9..9d147f1e3cb3 100644 --- a/src/Illuminate/Mail/Markdown.php +++ b/src/Illuminate/Mail/Markdown.php @@ -61,12 +61,12 @@ public function render($view, array $data = [], $inliner = null) 'mail', $this->htmlComponentPaths() )->make($view, $data)->render(); - $viewPath = Str::contains($this->theme, '::') + $theme = Str::contains($this->theme, '::') ? $this->theme : 'mail::themes.'.$this->theme; return new HtmlString(($inliner ?: new CssToInlineStyles)->convert( - $contents, $this->view->make($viewPath, $data)->render() + $contents, $this->view->make($theme, $data)->render() )); }