mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-22 06:47:19 +00:00
allowing install/cake-wide plugins
This commit is contained in:
parent
593bec85b7
commit
94e986561b
3 changed files with 2 additions and 4 deletions
|
@ -226,7 +226,6 @@ class ShellDispatcher {
|
||||||
if (!class_exists('Folder')) {
|
if (!class_exists('Folder')) {
|
||||||
require LIBS . 'folder.php';
|
require LIBS . 'folder.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($pluginPaths as $pluginPath) {
|
foreach ($pluginPaths as $pluginPath) {
|
||||||
$Folder =& new Folder($pluginPath);
|
$Folder =& new Folder($pluginPath);
|
||||||
list($plugins,) = $Folder->read(false, true);
|
list($plugins,) = $Folder->read(false, true);
|
||||||
|
@ -608,7 +607,6 @@ class ShellDispatcher {
|
||||||
|
|
||||||
$this->stdout("\nAvailable Shells:");
|
$this->stdout("\nAvailable Shells:");
|
||||||
$_shells = array();
|
$_shells = array();
|
||||||
|
|
||||||
foreach ($this->shellPaths as $path) {
|
foreach ($this->shellPaths as $path) {
|
||||||
if (is_dir($path)) {
|
if (is_dir($path)) {
|
||||||
$shells = App::objects('file', $path);
|
$shells = App::objects('file', $path);
|
||||||
|
|
|
@ -630,9 +630,9 @@ class App extends Object {
|
||||||
'views' => array(VIEWS),
|
'views' => array(VIEWS),
|
||||||
'helpers' => array(HELPERS),
|
'helpers' => array(HELPERS),
|
||||||
'locales' => array(APP . 'locale' . DS),
|
'locales' => array(APP . 'locale' . DS),
|
||||||
'shells' => array(APP . 'vendors' . DS . 'shells', VENDORS . 'shells'),
|
'shells' => array(APP . 'vendors' . DS . 'shells' . DS, VENDORS . 'shells' . DS),
|
||||||
'vendors' => array(APP . 'vendors' . DS, VENDORS),
|
'vendors' => array(APP . 'vendors' . DS, VENDORS),
|
||||||
'plugins' => array(APP . 'plugins' . DS),
|
'plugins' => array(APP . 'plugins' . DS, CAKE_CORE_INCLUDE_PATH . DS . 'plugins' . DS),
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($reset == true) {
|
if ($reset == true) {
|
||||||
|
|
0
plugins/empty
Normal file
0
plugins/empty
Normal file
Loading…
Reference in a new issue