Skip to content

Commit

Permalink
Fix namespace displayed for nested prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 4, 2018
1 parent bde36fb commit dec9e45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Template/Error/missing_action.ctp
Expand Up @@ -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
Expand Down

0 comments on commit dec9e45

Please sign in to comment.