cvs: pear-core /PEAR/Command Common.php

From: Date: Thu, 02 Mar 2006 16:39:14 +0000
Subject: cvs: pear-core /PEAR/Command Common.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4588@lists.php.net to get a copy of this message
pajoye Thu Mar 2 16:39:14 2006 UTC Modified files: /pear-core/PEAR/Command Common.php Log: - assign $func when not a shortcut http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Command/Common.php?r1=1.31&r2=1.32&diff_format=u Index: pear-core/PEAR/Command/Common.php diff -u pear-core/PEAR/Command/Common.php:1.31 pear-core/PEAR/Command/Common.php:1.32 --- pear-core/PEAR/Command/Common.php:1.31 Thu Mar 2 16:13:45 2006 +++ pear-core/PEAR/Command/Common.php Thu Mar 2 16:39:14 2006 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Common.php,v 1.31 2006/03/02 16:13:45 pajoye Exp $ + * @version CVS: $Id: Common.php,v 1.32 2006/03/02 16:39:14 pajoye Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -258,7 +258,6 @@ // look for shortcuts foreach (array_keys($this->commands) as $cmd) { if (isset($this->commands[$cmd]['shortcut']) && $this->commands[$cmd]['shortcut'] == $command) { - if (empty($this->commands[$cmd]['function'])) { return $this->raiseError("unknown command `$command'"); } else { @@ -268,6 +267,8 @@ break; } } + } else { + $func = $this->commands[$command]['function']; } return $this->$func($command, $options, $params); } @@ -275,4 +276,4 @@ // }}} } -?> \ No newline at end of file +?>

« previous php.pear.core (#4588) next »