mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Re-adding the support for the topmost plugins folder and homogenizing some constants in shell dispatcher
This commit is contained in:
parent
234d781f77
commit
65136e8cb1
2 changed files with 3 additions and 3 deletions
|
@ -85,10 +85,10 @@ class ShellDispatcher {
|
|||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -315,7 +315,7 @@ class App {
|
|||
'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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue