Skip to content

Commit

Permalink
when using App::path but expecting 1 result - use the first
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed May 15, 2011
1 parent 8f071e2 commit 42c5c6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ControllerTask.php
Expand Up @@ -48,7 +48,7 @@ class ControllerTask extends BakeTask {
*
*/
public function initialize() {
$this->path = App::path('Controller');
$this->path = current(App::path('Controller'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -74,7 +74,7 @@ class ModelTask extends BakeTask {
*
*/
public function initialize() {
$this->path = App::path('Model');
$this->path = current(App::path('Model'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/PluginTask.php
Expand Up @@ -41,7 +41,7 @@ class PluginTask extends Shell {
* @return void
*/
function initialize() {
$this->path = APP . 'Plugin' . DS;
$this->path = current(App::path('Plugin'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ViewTask.php
Expand Up @@ -89,7 +89,7 @@ class ViewTask extends BakeTask {
*
*/
public function initialize() {
$this->path = App::path('View');
$this->path = current(App::path('View'));
}

/**
Expand Down

0 comments on commit 42c5c6e

Please sign in to comment.