cvs: php4(NEW_UI_API) /pear/PEAR Command.php
| From: | Stig Bakken | Date: | Tue, 28 May 2002 13:03:25 +0000 |
| Subject: | cvs: php4(NEW_UI_API) /pear/PEAR Command.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4203@lists.php.net to get a copy of this message | ||
ssb Tue May 28 09:03:25 2002 EDT
Modified files: (Branch: NEW_UI_API)
/php4/pear/PEAR Command.php
Log:
* don't create duplicate ui objects
Index: php4/pear/PEAR/Command.php
diff -u php4/pear/PEAR/Command.php:1.14 php4/pear/PEAR/Command.php:1.14.2.1
--- php4/pear/PEAR/Command.php:1.14 Sun May 26 08:54:08 2002
+++ php4/pear/PEAR/Command.php Tue May 28 09:03:25 2002
@@ -16,7 +16,7 @@
// | Author: Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Command.php,v 1.14 2002/05/26 12:54:08 ssb Exp $
+// $Id: Command.php,v 1.14.2.1 2002/05/28 13:03:25 ssb Exp $
require_once "PEAR.php";
@@ -145,6 +145,11 @@
*/
function &setFrontendClass($uiclass)
{
+ if (is_object($GLOBALS['_PEAR_Command_uiobject']) &&
+ strtolower($GLOBALS['_PEAR_Command_uiclass']) ==
+ get_class($GLOBALS['_PEAR_Command_uiobject'])) {
+ return;
+ }
$file = str_replace('_', '/', $uiclass) . '.php';
@include_once $file;
if (class_exists(strtolower($uiclass))) {