Skip to content

Commit

Permalink
Fixing import of MediaView in dispatcher so Media models used in Rout…
Browse files Browse the repository at this point in the history
…ing don't interfere with asset delivery.

Fixes #1670
  • Loading branch information
markstory committed Apr 30, 2011
1 parent 10d735f commit d9c7f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/dispatcher.php
Expand Up @@ -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])) {
Expand Down

0 comments on commit d9c7f4d

Please sign in to comment.