Skip to content
This repository
Browse code

avoid path being made absolute twice

  • Loading branch information...
commit 387a974396dbae274f31dd68968980e813dd4d79 1 parent a1edede
Mark authored September 03, 2012

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. 6  lib/Cake/View/MediaView.php
6  lib/Cake/View/MediaView.php
@@ -69,11 +69,7 @@ public function render($view = null, $layout = null) {
69 69
 		$name = $download = $id = $modified = $path = $cache = $mimeType = $compress = null;
70 70
 		extract($this->viewVars, EXTR_OVERWRITE);
71 71
 
72  
-		if (is_dir($path)) {
73  
-			$path = $path . $id;
74  
-		} else {
75  
-			$path = APP . $path . $id;
76  
-		}
  72
+		$path = $path . $id;
77 73
 
78 74
 		if (is_array($mimeType)) {
79 75
 			$this->response->type($mimeType);

0 notes on commit 387a974

Please sign in to comment.
Something went wrong with that request. Please try again.