avoid path being made absolute twice

This commit is contained in:
euromark 2012-09-03 13:16:40 +02:00
parent a1edede41e
commit 387a974396

View file

@ -69,11 +69,7 @@ class MediaView extends View {
$name = $download = $id = $modified = $path = $cache = $mimeType = $compress = null;
extract($this->viewVars, EXTR_OVERWRITE);
if (is_dir($path)) {
$path = $path . $id;
} else {
$path = APP . $path . $id;
}
$path = $path . $id;
if (is_array($mimeType)) {
$this->response->type($mimeType);