Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

PHP4 compatibility for plugin syntax change

  • Loading branch information...
commit 23b0088285fa55246a806d17e40b590a0c14d7fd 1 parent 9d0d314
@AD7six AD7six authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/console/libs/bake.php
View
5 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'])) {
Please sign in to comment.
Something went wrong with that request. Please try again.