Don't create global template object

This commit is contained in:
Miles Lott 2004-01-10 22:54:35 +00:00
parent 5f0e3a5e15
commit d6c316e857

View File

@ -13,7 +13,10 @@
/* $Id$ */ /* $Id$ */
$phpgw_info = array(); $phpgw_info = array();
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'preferences'; $GLOBALS['phpgw_info']['flags'] = array(
'currentapp' => 'preferences',
'disable_Template_class' => True
);
include('../header.inc.php'); include('../header.inc.php');
$pref_tpl = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); $pref_tpl = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
@ -91,7 +94,7 @@
else else
{ {
$pref_tpl->parse('rows','app_row_noicon',True); $pref_tpl->parse('rows','app_row_noicon',True);
} }
} }
function section_item($pref_link='',$pref_text='') function section_item($pref_link='',$pref_text='')
@ -110,7 +113,7 @@
} }
$pref_tpl->parse('rows','link_row',True); $pref_tpl->parse('rows','link_row',True);
} }
function section_end() function section_end()
{ {
@ -131,7 +134,7 @@
{ {
section_item($url,lang($text)); section_item($url,lang($text));
} }
section_end(); section_end();
} }
$GLOBALS['phpgw']->hooks->process('preferences',array('preferences')); $GLOBALS['phpgw']->hooks->process('preferences',array('preferences'));