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:
gwoo 2007-12-27 07:41:56 +00:00
parent c727b14365
commit 4f97057a62

View file

@ -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)) {