mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
fix for DbConfig task caused when plugin support was added to bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6265 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c727b14365
commit
4f97057a62
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class BakeShell extends Shell {
|
|||
function loadTasks() {
|
||||
parent::loadTasks();
|
||||
$task = Inflector::classify($this->command);
|
||||
if (isset($this->{$task})) {
|
||||
if (isset($this->{$task}) && !in_array($task, array('Project', 'DbConfig'))) {
|
||||
$path = Inflector::underscore(Inflector::pluralize($this->command));
|
||||
$this->{$task}->path = $this->params['working'] . DS . $path . DS;
|
||||
if (!is_dir($this->{$task}->path)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue