Re: cvs: php4 /pear package-PEAR.xml /pear/PEAR Builder.php Command.php Common.php Config.php Installer.php /pear/PEAR/Command Auth.php Build.php
Common.php Config.php Install.php Package.php Registry.php Remote.php /pear/PEAR/Frontend CLI.php /pear/scripts pear.in /pear/tests
pear_config.phpt
| From: | Alan Knowles | Date: | Sun, 02 Jun 2002 13:35:48 +0000 |
| Subject: | Re: cvs: php4 /pear package-PEAR.xml /pear/PEAR Builder.php Command.php Common.php Config.php Installer.php /pear/PEAR/Command Auth.php Build.php Common.php Config.php Install.php Package.php Registry.php Remote.php /pear/PEAR/Frontend CLI.php /pear/scripts pear.in /pear/tests pear_config.phpt |
||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-4368@lists.php.net to get a copy of this message | ||
Stig Bakken wrote:
-// $Id: Command.php,v 1.14 2002/05/26 12:54:08 ssb Exp $
+// $Id: Command.php,v 1.15 2002/06/02 13:07:18 ssb Exp $
require_once "PEAR.php";
@@ -145,13 +145,18 @@
*/
function &setFrontendClass($uiclass)
{
+ if (is_object($GLOBALS['_PEAR_Command_uiobject']) &&
+ strtolower($GLOBALS['_PEAR_Command_uiclass']) ==
+ get_class($GLOBALS['_PEAR_Command_uiobject'])) {
+ return;
+ }
can you change this to
strtolower($uiclass) ==
as otherwise the GTK wont work, as the CLI frontend appears to be created before the GTK one
regards
alan