mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove dead code.
The list of paths is now output on the default error page, we don't need to make an educated guess here anymore.
This commit is contained in:
parent
fecc687f81
commit
31956c2abb
1 changed files with 0 additions and 11 deletions
|
@ -1008,17 +1008,6 @@ class View extends Object {
|
|||
}
|
||||
}
|
||||
}
|
||||
$defaultPath = $paths[0];
|
||||
|
||||
if ($this->plugin) {
|
||||
$pluginPaths = App::path('plugins');
|
||||
foreach ($paths as $path) {
|
||||
if (strpos($path, $pluginPaths[0]) === 0) {
|
||||
$defaultPath = $path;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new MissingViewException(array('file' => $name . $this->ext));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue