From d7fe53b79eef3fd2776ef3b2f39ba5e876263dc6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 25 Mar 2008 16:07:08 +0000 Subject: [PATCH] removed unnecessary instancations and using static methods of html and egw_link class --- resources/inc/class.ui_resources.inc.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/inc/class.ui_resources.inc.php b/resources/inc/class.ui_resources.inc.php index f32ecf940c..278f76356e 100755 --- a/resources/inc/class.ui_resources.inc.php +++ b/resources/inc/class.ui_resources.inc.php @@ -33,15 +33,10 @@ class ui_resources function ui_resources() { // print_r($GLOBALS['egw_info']); die(); - $this->tmpl =& CreateObject('etemplate.etemplate','resources.show'); + $this->tmpl = new etemplate('resources.show'); $this->bo =& CreateObject('resources.bo_resources'); - $this->html =& $GLOBALS['egw']->html; // $this->calui = CreateObject('resources.ui_calviews'); - if(!@is_object($GLOBALS['egw']->js)) - { - $GLOBALS['egw']->js =& CreateObject('phpgwapi.javascript'); - } } /** @@ -541,7 +536,7 @@ class ui_resources $resources['r'.$data['res_id']] = $data['name']; } } - $selectbox = $this->html->select( + $selectbox = html::select( 'owner', $selected, array_merge($resources,$res_cats),