Skip to content

Commit

Permalink
REmoving usage of deprecated ThemeView
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 20, 2012
1 parent 02fa1ae commit 6918b70
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cake/Routing/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,9 @@ public function cached($path) {
if (!file_exists($filename)) {
$filename = CACHE . 'views' . DS . $path . '_index.php';
}

if (file_exists($filename)) {
App::uses('ThemeView', 'View');

$controller = null;
$view = new ThemeView($controller);
$view = new View($controller);
return $view->renderCache($filename, microtime(true));
}
}
Expand Down

0 comments on commit 6918b70

Please sign in to comment.