Browse Source

Fix namespace displayed for nested prefix.

ADmad 8 years ago
parent
commit
dec9e45db8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Template/Error/missing_action.ctp

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

@@ -22,9 +22,9 @@ if (!empty($plugin)) {
 }
 $prefixNs = '';
 if (!empty($prefix)) {
-    $prefix = Inflector::camelize($prefix);
-    $prefixNs = '\\' . $prefix;
-    $prefix .= DIRECTORY_SEPARATOR;
+    $prefix = array_map('\Cake\Utility\Inflector::camelize', explode('/', $prefix));
+    $prefixNs = '\\' . implode('\\', $prefix);
+    $prefix = implode(DIRECTORY_SEPARATOR, $prefix) . DIRECTORY_SEPARATOR;
 }
 
 // Controller MissingAction support