Permalink
Browse files

correct path in error message for a missing component

PluginNameController/Component

becomes

PluginName/Controller/Component
  • Loading branch information...
1 parent 33c112b commit 72a36a0929285359b2057b2eca9a92fe264990cf @AD7six AD7six committed Jun 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Errors/missing_component.ctp
@@ -24,7 +24,7 @@ $pluginDot = empty($plugin) ? null : $plugin . '.';
</p>
<p class="error">
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
- <?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR . DS : CakePlugin::path($plugin)) . 'Controller' . DS . 'Component' . DS . $class . '.php'); ?>
+ <?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR : CakePlugin::path($plugin)) . DS . 'Controller' . DS . 'Component' . DS . $class . '.php'); ?>
</p>
<pre>
&lt;?php

0 comments on commit 72a36a0

Please sign in to comment.