mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
10d735fcf8
commit
d9c7f4df66
1 changed files with 1 additions and 1 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue