From df15244909ae8a739bd4ab4d682990f035adff97 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 16 Mar 2008 04:46:35 +0000 Subject: [PATCH] fix for console on php 4 probably also related to #4326 & #4337. Thanks for testing sdevore. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6579 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/cake.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/console/cake.php b/cake/console/cake.php index fafa2fa99..f29629f85 100644 --- a/cake/console/cake.php +++ b/cake/console/cake.php @@ -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();