mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
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:
parent
915f3a843f
commit
c1b472d149
@ -75,7 +75,7 @@
|
||||
function section_start($appname='',$icon='')
|
||||
{
|
||||
$GLOBALS['phpgw']->template->set_var('app_name',$appname);
|
||||
$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_icon',$icon);
|
||||
|
||||
if ($icon)
|
||||
@ -109,8 +109,12 @@
|
||||
$GLOBALS['phpgw']->template->parse('rows','spacer_row',True);
|
||||
}
|
||||
|
||||
function display_section($appname,$file)
|
||||
function display_section($appname,$file,$file2=False)
|
||||
{
|
||||
if ($file2)
|
||||
{
|
||||
$file = $file2;
|
||||
}
|
||||
section_start($appname,$GLOBALS['phpgw']->common->image($appname,'navbar','',True));
|
||||
|
||||
while(is_array($file) && list($text,$url) = each($file))
|
||||
|
Loading…
Reference in New Issue
Block a user