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
This commit is contained in:
gwoo 2008-03-16 04:46:35 +00:00
parent db19cb01fd
commit df15244909

View file

@ -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();