when using App::path but expecting 1 result - use the first

This commit is contained in:
AD7six 2011-04-17 13:28:45 +02:00
parent 8f071e297c
commit 42c5c6e7fe
4 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ class ControllerTask extends BakeTask {
*
*/
public function initialize() {
$this->path = App::path('Controller');
$this->path = current(App::path('Controller'));
}
/**

View file

@ -74,7 +74,7 @@ class ModelTask extends BakeTask {
*
*/
public function initialize() {
$this->path = App::path('Model');
$this->path = current(App::path('Model'));
}
/**

View file

@ -41,7 +41,7 @@ class PluginTask extends Shell {
* @return void
*/
function initialize() {
$this->path = APP . 'Plugin' . DS;
$this->path = current(App::path('Plugin'));
}
/**

View file

@ -89,7 +89,7 @@ class ViewTask extends BakeTask {
*
*/
public function initialize() {
$this->path = App::path('View');
$this->path = current(App::path('View'));
}
/**