* [bug#54866,done,1h] File path uses actual path.
This commit is contained in:
@@ -367,7 +367,7 @@ class mailModel extends model
|
||||
{
|
||||
$wwwRoot = $this->app->getWwwRoot();
|
||||
$images = array_filter(array_unique($images));
|
||||
foreach($images as $image) $this->mta->AddEmbeddedImage($wwwRoot . $image, basename($image));
|
||||
foreach($images as $image) $this->mta->AddEmbeddedImage($image, basename($image));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -112,7 +112,7 @@ class mailTao extends mailModel
|
||||
if(!$file) continue;
|
||||
if(!in_array($file->extension, $this->config->file->imageExtensions)) continue;
|
||||
|
||||
$images[$matches[1][$key]] = $file->webPath;
|
||||
$images[$matches[1][$key]] = $file->realPath;
|
||||
}
|
||||
return $images;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user