Skip to content
Permalink
Browse files

Fix: I got confused which was needle and which was the haystack

  • Loading branch information...
rchavik committed Sep 15, 2017
1 parent eb61abf commit 9f2746cdf5a59ec07bc6bb068b4c2dfaad9b3b00
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Core/Plugin.php
@@ -189,7 +189,7 @@ protected static function _loadConfig()
$vendorFile = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'cakephp-plugins.php';
if (!file_exists($vendorFile)) {
$vendorFile = dirname(dirname(dirname(dirname(__DIR__)))) . DIRECTORY_SEPARATOR . 'cakephp-plugins.php';
if (strpos(ROOT, $vendorFile) === false || !file_exists($vendorFile)) {
if (strpos($vendorFile, ROOT) !== 0 || !file_exists($vendorFile)) {
Configure::write(['plugins' => []]);
return;

0 comments on commit 9f2746c

Please sign in to comment.
You can’t perform that action at this time.