From f562ea44f380877f3a08a8bfcdd262587ad6b7b5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 21 Mar 2008 20:57:01 +0000 Subject: [PATCH] removed unnecessary instanciations --- addressbook/inc/class.uicontacts.inc.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index d10abff6b1..235a986c2b 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -59,18 +59,8 @@ class uicontacts extends bocontacts { $this->bocontacts($contact_app); - foreach(array( - 'tmpl' => 'etemplate.etemplate', - ) as $my => $app_class) - { - list(,$class) = explode('.',$app_class); + $this->tmpl = new etemplate(); - if (!is_object($GLOBALS['egw']->$class)) - { - $GLOBALS['egw']->$class =& CreateObject($app_class); - } - $this->$my = &$GLOBALS['egw']->$class; - } $this->private_addressbook = $this->contact_repository == 'sql' && $this->prefs['private_addressbook']; $this->org_views = array(