Permalink
Browse files

avoid path being made absolute twice

  • Loading branch information...
1 parent a1edede commit 387a974396dbae274f31dd68968980e813dd4d79 @dereuromark dereuromark committed Sep 3, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/Cake/View/MediaView.php
View
6 lib/Cake/View/MediaView.php
@@ -69,11 +69,7 @@ public function render($view = null, $layout = null) {
$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);

0 comments on commit 387a974

Please sign in to comment.