Skip to content

Commit

Permalink
PHP4 compatibility for plugin syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Jul 28, 2009
1 parent 9d0d314 commit 23b0088
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cake/console/libs/bake.php
Expand Up @@ -56,9 +56,10 @@ function loadTasks() {
if (isset($this->params['connection'])) {
$this->{$task}->connection = $this->params['connection'];
}
foreach($this->args as &$arg) {
foreach($this->args as $i => $arg) {
if (strpos($arg, '.')) {
list($this->params['plugin'], $arg) = explode('.', $arg);
list($this->params['plugin'], $this->args[$i]) = explode('.', $arg);
break;
}
}
if (isset($this->params['plugin'])) {
Expand Down

0 comments on commit 23b0088

Please sign in to comment.