mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing parse error in php4 for MediaView. Also fixing undefined variable error in Dispatcher. Fixes #628
This commit is contained in:
parent
56967e71c1
commit
bb239e3816
2 changed files with 2 additions and 1 deletions
|
@ -620,6 +620,7 @@ class Dispatcher extends Object {
|
|||
}
|
||||
|
||||
App::import('View', 'Media', false);
|
||||
$controller = null;
|
||||
$Media = new MediaView($controller);
|
||||
if (isset($Media->mimeType[$ext])) {
|
||||
$contentType = $Media->mimeType[$ext];
|
||||
|
|
|
@ -95,7 +95,7 @@ class MediaView extends View {
|
|||
*
|
||||
* @param object $controller
|
||||
*/
|
||||
function __construct(&$controller = null) {
|
||||
function __construct(&$controller) {
|
||||
parent::__construct($controller);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue