mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
REmoving usage of deprecated ThemeView
This commit is contained in:
parent
02fa1ae60b
commit
6918b70ec3
1 changed files with 1 additions and 4 deletions
|
@ -218,12 +218,9 @@ class Dispatcher {
|
|||
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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue