Skip to content
Permalink
Browse files

Revert "Fix: Do not load cakephp-plugins from outside of ROOT"

This reverts merge commit b85ef39 and
commit 1597e6f.

This broke workflow for plugins based on usemuffin/skeleton.

Reported-By: robertpustulka
  • Loading branch information...
rchavik committed Sep 19, 2017
1 parent 173293f commit 32cdb64e651e0d600f93c968dcb780dace9e8134
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($vendorFile, ROOT) !== 0 || !file_exists($vendorFile)) {
if (!file_exists($vendorFile)) {
Configure::write(['plugins' => []]);
return;

0 comments on commit 32cdb64

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