Browse Source

Update missing_action.ctp

double slash if no prefix
MarkusDl 11 years ago
parent
commit
c33b99c462
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/Template/Error/missing_action.ctp

+ 3 - 2
src/Template/Error/missing_action.ctp

@@ -24,11 +24,12 @@ $prefixNs = '';
 if (!empty($prefix)) {
 	$prefix = Inflector::camelize($prefix);
 	$prefixNs = '\\' . $prefix;
+	$prefix .= DS;
 }
 if (empty($plugin)) {
-	$path = APP_DIR . DS . 'Controller' . DS . $prefix . DS . h($controller) . '.php' ;
+	$path = APP_DIR . DS . 'Controller' . DS . $prefix . h($controller) . '.php' ;
 } else {
-	$path = Plugin::classPath($plugin) . 'Controller' . DS . $prefix . DS . h($controller) . '.php';
+	$path = Plugin::classPath($plugin) . 'Controller' . DS . $prefix . h($controller) . '.php';
 }
 ?>
 <h2><?= sprintf('Missing Method in %s', h($controller)); ?></h2> <p class="error">