Skip to content

Commit

Permalink
Re-adding the support for the topmost plugins folder and homogenizing…
Browse files Browse the repository at this point in the history
… some constants in shell dispatcher
  • Loading branch information
lorenzo committed Mar 8, 2011
1 parent 234d781 commit 65136e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/ShellDispatcher.php
Expand Up @@ -85,10 +85,10 @@ function __initConstants() {

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('DS', DIRECTORY_SEPARATOR);
define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));
define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(dirname(__FILE__)))));
define('CAKEPHP_SHELL', true);
if (!defined('CORE_PATH')) {
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS . 'lib' . DS);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Core/App.php
Expand Up @@ -315,7 +315,7 @@ public static function build($paths = array(), $reset = false) {
'libs' => array('%s' . 'libs' . DS),
'locales' => array('%s' . 'locale' . DS),
'vendors' => array('%s' . 'vendors' . DS, VENDORS),
'plugins' => array(APP . 'plugins' . DS)
'plugins' => array(APP . 'plugins' . DS, CAKE_CORE_INCLUDE_PATH . DS . 'plugins' . DS)
);
}

Expand Down

0 comments on commit 65136e8

Please sign in to comment.