Fixing parse error in php4 for MediaView. Also fixing undefined variable error in Dispatcher. Fixes #628

This commit is contained in:
Mark Story 2010-04-27 22:42:33 -04:00
parent 56967e71c1
commit bb239e3816
2 changed files with 2 additions and 1 deletions

View file

@ -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];

View file

@ -95,7 +95,7 @@ class MediaView extends View {
*
* @param object $controller
*/
function __construct(&$controller = null) {
function __construct(&$controller) {
parent::__construct($controller);
}