Skip to content

Commit 40a6208

Browse files
authored
Merge pull request #1072 from cakephp/issue-1071
Fix path check on Windows.
2 parents f1b25a5 + 059a696 commit 40a6208

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Command/PluginCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ protected function _generateFiles(
264264
$template = substr($template, strrpos($template, 'Plugin' . DIRECTORY_SEPARATOR) + 7, -4);
265265
$template = rtrim($template, '.');
266266
$filename = $template;
267-
if ($filename === 'src/Plugin.php') {
268-
$filename = 'src/' . $name . 'Plugin.php';
267+
if ($filename === 'src' . DIRECTORY_SEPARATOR . 'Plugin.php') {
268+
$filename = 'src' . DIRECTORY_SEPARATOR . $name . 'Plugin.php';
269269
}
270270
$this->_generateFile($renderer, $template, $root, $filename, $io);
271271
}

0 commit comments

Comments
 (0)