mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
PHP4 compatibility for plugin syntax change
This commit is contained in:
parent
9d0d31409a
commit
23b0088285
1 changed files with 3 additions and 2 deletions
|
@ -56,9 +56,10 @@ class BakeShell extends Shell {
|
||||||
if (isset($this->params['connection'])) {
|
if (isset($this->params['connection'])) {
|
||||||
$this->{$task}->connection = $this->params['connection'];
|
$this->{$task}->connection = $this->params['connection'];
|
||||||
}
|
}
|
||||||
foreach($this->args as &$arg) {
|
foreach($this->args as $i => $arg) {
|
||||||
if (strpos($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'])) {
|
if (isset($this->params['plugin'])) {
|
||||||
|
|
Loading…
Reference in a new issue