Skip to content
Permalink
Browse files

PHP4 compatibility for plugin syntax change

  • Loading branch information...
AD7six
AD7six committed Jul 28, 2009
1 parent 9d0d314 commit 23b0088285fa55246a806d17e40b590a0c14d7fd
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/console/libs/bake.php
@@ -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'])) {

0 comments on commit 23b0088

Please sign in to comment.
You can’t perform that action at this time.