Skip to content
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...
markstory committed Apr 30, 2011
1 parent 10d735f commit d9c7f4df664553ef84c98ad7d7d346c9d0086c9c
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/dispatcher.php
@@ -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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.