Browse Source

Re-adding the support for the topmost plugins folder and homogenizing some constants in shell dispatcher

Jose Lorenzo Rodriguez 15 years ago
parent
commit
65136e8cb1
2 changed files with 3 additions and 3 deletions
  1. 2 2
      lib/Cake/Console/ShellDispatcher.php
  2. 1 1
      lib/Cake/Core/App.php

+ 2 - 2
lib/Cake/Console/ShellDispatcher.php

@@ -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);
 			}
 		}
 	}

+ 1 - 1
lib/Cake/Core/App.php

@@ -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)
 			);
 		}