Skip to content

Commit

Permalink
Fixing more tests failing in case sensitive systems
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 16, 2011
1 parent ceb671d commit 4ee4e42
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Network/Email/CakeEmail.php
Expand Up @@ -1276,7 +1276,7 @@ protected function _render($content) {
$msg[] = 'Content-Transfer-Encoding: 7bit';
$msg[] = '';

$View->viewPath = $View->layoutPath = 'emails' . DS . 'text';
$View->viewPath = $View->layoutPath = 'Emails' . DS . 'text';
$View->viewVars['content'] = $originalContent;
$this->_textMessage = str_replace(array("\r\n", "\r"), "\n", $View->render($this->_template, $this->_layout));
$content = explode("\n", $this->_textMessage);
Expand All @@ -1288,7 +1288,7 @@ protected function _render($content) {
$msg[] = 'Content-Transfer-Encoding: 7bit';
$msg[] = '';

$View->viewPath = $View->layoutPath = 'emails' . DS . 'html';
$View->viewPath = $View->layoutPath = 'Emails' . DS . 'html';
$View->viewVars['content'] = $originalContent;
$View->hasRendered = false;
$this->_htmlMessage = str_replace(array("\r\n", "\r"), "\n", $View->render($this->_template, $this->_layout));
Expand Down Expand Up @@ -1317,7 +1317,7 @@ protected function _render($content) {
}
}

$View->viewPath = $View->layoutPath = 'emails' . DS . $this->_emailFormat;
$View->viewPath = $View->layoutPath = 'Emails' . DS . $this->_emailFormat;
$View->viewVars['content'] = $content;
$rendered = $View->render($this->_template, $this->_layout);
$content = explode("\n", $rendered);
Expand Down

0 comments on commit 4ee4e42

Please sign in to comment.