From 94e986561bf5de6886719c9c3e5211535f9e5960 Mon Sep 17 00:00:00 2001 From: AD7six Date: Sat, 25 Jul 2009 00:01:51 +0200 Subject: [PATCH] allowing install/cake-wide plugins --- cake/console/cake.php | 2 -- cake/libs/configure.php | 4 ++-- plugins/empty | 0 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 plugins/empty diff --git a/cake/console/cake.php b/cake/console/cake.php index 02a5bd90b..ab4d6c891 100644 --- a/cake/console/cake.php +++ b/cake/console/cake.php @@ -226,7 +226,6 @@ class ShellDispatcher { if (!class_exists('Folder')) { require LIBS . 'folder.php'; } - foreach ($pluginPaths as $pluginPath) { $Folder =& new Folder($pluginPath); list($plugins,) = $Folder->read(false, true); @@ -608,7 +607,6 @@ class ShellDispatcher { $this->stdout("\nAvailable Shells:"); $_shells = array(); - foreach ($this->shellPaths as $path) { if (is_dir($path)) { $shells = App::objects('file', $path); diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 02f49bc9b..95a125deb 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -630,9 +630,9 @@ class App extends Object { 'views' => array(VIEWS), 'helpers' => array(HELPERS), '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), - 'plugins' => array(APP . 'plugins' . DS), + 'plugins' => array(APP . 'plugins' . DS, CAKE_CORE_INCLUDE_PATH . DS . 'plugins' . DS), ); if ($reset == true) { diff --git a/plugins/empty b/plugins/empty new file mode 100644 index 000000000..e69de29bb