mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
when using App::path but expecting 1 result - use the first
This commit is contained in:
parent
8f071e297c
commit
42c5c6e7fe
4 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ class ControllerTask extends BakeTask {
|
|||
*
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->path = App::path('Controller');
|
||||
$this->path = current(App::path('Controller'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -74,7 +74,7 @@ class ModelTask extends BakeTask {
|
|||
*
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->path = App::path('Model');
|
||||
$this->path = current(App::path('Model'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,7 +41,7 @@ class PluginTask extends Shell {
|
|||
* @return void
|
||||
*/
|
||||
function initialize() {
|
||||
$this->path = APP . 'Plugin' . DS;
|
||||
$this->path = current(App::path('Plugin'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -89,7 +89,7 @@ class ViewTask extends BakeTask {
|
|||
*
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->path = App::path('View');
|
||||
$this->path = current(App::path('View'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue