Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrevin committed May 21, 2015
1 parent f62e99c commit 737757e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
2015-05-21
----------
* Bugfix #7

2015-05-20
----------
* In method `ViewLetter::setViewFromBody` add parameter `viewPath`.
Expand Down
2 changes: 1 addition & 1 deletion ViewLetter.php
Expand Up @@ -34,7 +34,7 @@ public function setBodyFromView($view, $data = [], $viewPath = null)
$viewPath = \Yii::$app->basePath . '/views';
}

if (strncmp($view, '@', 1)) {
if (strncmp($view, '@', 1) === 0) {
// example $view = '@app/view/email/letter-text.php'
$path = \Yii::getAlias($view);
} else {
Expand Down

0 comments on commit 737757e

Please sign in to comment.