Permalink
Browse files

Fixing import of MediaView in dispatcher so Media models used in Rout…

…ing don't interfere with asset delivery.


Fixes #1670
  • Loading branch information...
1 parent 10d735f commit d9c7f4df664553ef84c98ad7d7d346c9d0086c9c @markstory markstory committed Apr 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/dispatcher.php
View
@@ -627,7 +627,7 @@ function _deliverAsset($assetFile, $ext) {
ob_start('ob_gzhandler');
}
- App::import('View', 'Media', false);
+ App::import('View', 'Media');
$controller = null;
$Media = new MediaView($controller);
if (isset($Media->mimeType[$ext])) {

0 comments on commit d9c7f4d

Please sign in to comment.