changed to use title generated by applications-class,

added a 3-param to display_section to be compatible with old-style-apps
This commit is contained in:
Ralf Becker 2003-03-27 11:06:33 +00:00
parent c1b472d149
commit 3955ddd056

View File

@ -30,7 +30,7 @@
// This func called by the includes to dump a row header // This func called by the includes to dump a row header
function section_start($appname='',$icon='') function section_start($appname='',$icon='')
{ {
$GLOBALS['phpgw']->template->set_var('app_title',lang($appname)); $GLOBALS['phpgw']->template->set_var('app_title',$GLOBALS['phpgw_info']['apps'][$appname]['title']);
$GLOBALS['phpgw']->template->set_var('app_name',$appname); $GLOBALS['phpgw']->template->set_var('app_name',$appname);
$GLOBALS['phpgw']->template->set_var('app_icon',$icon); $GLOBALS['phpgw']->template->set_var('app_icon',$icon);
if ($icon) if ($icon)
@ -55,8 +55,12 @@
$GLOBALS['phpgw']->template->parse('rows','spacer_row',True); $GLOBALS['phpgw']->template->parse('rows','spacer_row',True);
} }
function display_section($appname,$file) function display_section($appname,$file,$file2=False)
{ {
if ($file2)
{
$file = $file2;
}
if(is_array($file)) if(is_array($file))
{ {
section_start($appname, section_start($appname,