mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6579 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
db19cb01fd
commit
df15244909
1 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ class ShellDispatcher {
|
|||
$vendorPaths = Configure::read('vendorPaths');
|
||||
$count = count($vendorPaths);
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$paths[] = $vendorPaths[$i] . DS . 'shells' . DS;
|
||||
$paths[] = rtrim($vendorPaths[$i], DS) . DS . 'shells' . DS;
|
||||
}
|
||||
|
||||
$this->shellPaths = array_merge($paths, array(CONSOLE_LIBS));
|
||||
|
@ -297,7 +297,7 @@ class ShellDispatcher {
|
|||
$this->shellCommand = Inflector::variable($command);
|
||||
$shell = new $this->shellClass($this);
|
||||
|
||||
if (get_parent_class($shell) == 'Shell') {
|
||||
if (strtolower(get_parent_class($shell)) == 'shell') {
|
||||
$shell->initialize();
|
||||
$shell->loadTasks();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue