Browse Source

correct path in error message for a missing component

PluginNameController/Component

becomes

PluginName/Controller/Component
AD7six 14 years ago
parent
commit
72a36a0929
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/View/Errors/missing_component.ctp

+ 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