PHP4 compatibility for plugin syntax change

This commit is contained in:
AD7six 2009-07-28 22:19:15 +02:00
parent 9d0d31409a
commit 23b0088285

View file

@ -56,9 +56,10 @@ class BakeShell extends Shell {
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'])) {