Permalink
Browse files

Removed legacy code and using static late in core classes

  • Loading branch information...
1 parent b404a3b commit 1e57bef01cd463a52f49aaecacb4e1a5a5eb2ece @jrbasso committed May 31, 2012
@@ -168,7 +168,7 @@ public function execute() {
}
if (!empty($this->params['exclude-plugins']) && $this->_isExtractingApp()) {
- $this->_exclude = array_merge($this->_exclude, App::path('plugins'));
+ $this->_exclude = array_merge($this->_exclude, App::path('Plugin'));
}
if (!empty($this->params['ignore-model-validation']) || (!$this->_isExtractingApp() && empty($plugin))) {
@@ -42,7 +42,7 @@ class PluginTask extends Shell {
* @return void
*/
public function initialize() {
- $this->path = current(App::path('plugins'));
+ $this->path = current(App::path('Plugin'));
}
/**
@@ -88,7 +88,7 @@ protected function _interactive($plugin = null) {
* @return boolean
*/
public function bake($plugin) {
- $pathOptions = App::path('plugins');
+ $pathOptions = App::path('Plugin');
if (count($pathOptions) > 1) {
$this->findPath($pathOptions);
}
@@ -826,7 +826,7 @@ protected function _pluginPath($pluginName) {
if (Plugin::loaded($pluginName)) {
return Plugin::path($pluginName);
}
- return current(App::path('plugins')) . $pluginName . DS;
+ return current(App::path('Plugin')) . $pluginName . DS;
}
}
Oops, something went wrong.

0 comments on commit 1e57bef

Please sign in to comment.