mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
pluginSplit for a more meaningful exception message
This commit is contained in:
parent
6f5ff4d7dd
commit
c83b454946
1 changed files with 3 additions and 1 deletions
|
@ -414,7 +414,9 @@ class View extends Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($options['ignoreMissing'])) {
|
if (empty($options['ignoreMissing'])) {
|
||||||
$file = 'Elements' . DS . $name . $this->ext;
|
list ($plugin, $name) = pluginSplit($name, true);
|
||||||
|
$name = str_replace('/', DS, $name);
|
||||||
|
$file = $plugin . 'Elements' . DS . $name . $this->ext;
|
||||||
trigger_error(__d('cake_dev', 'Element Not Found: %s', $file), E_USER_NOTICE);
|
trigger_error(__d('cake_dev', 'Element Not Found: %s', $file), E_USER_NOTICE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue