Skip to content

Commit

Permalink
pluginSplit for a more meaningful exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Dec 15, 2012
1 parent 6f5ff4d commit c83b454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/View/View.php
Expand Up @@ -414,7 +414,9 @@ public function element($name, $data = array(), $options = array()) {
}

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);
}
}
Expand Down

0 comments on commit c83b454

Please sign in to comment.