Fixing import of MediaView in dispatcher so Media models used in Routing don't interfere with asset delivery.

Fixes #1670
This commit is contained in:
mark_story 2011-04-30 12:42:08 -04:00
parent 10d735fcf8
commit d9c7f4df66

View file

@ -627,7 +627,7 @@ class Dispatcher extends Object {
ob_start('ob_gzhandler');
}
App::import('View', 'Media', false);
App::import('View', 'Media');
$controller = null;
$Media = new MediaView($controller);
if (isset($Media->mimeType[$ext])) {