CakeEmail: create request object before rendering

Closes #2931
This commit is contained in:
Rachman Chavik 2012-06-03 15:52:21 +07:00
parent d1819dcabb
commit 9bafc5a3bb
4 changed files with 64 additions and 0 deletions

View file

@ -313,6 +313,9 @@ class Helper extends Object {
$path = h($this->assetTimestamp($this->webroot($path)));
if (!empty($options['fullBase'])) {
if ($path[0] == '/') {
$path = substr($path, 1);
}
$path = $this->url('/', true) . $path;
}
}