From c1b472d14931724e010d5926b44174f457dd59f4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 27 Mar 2003 10:54:55 +0000 Subject: [PATCH] changed to use title generated by applications-class, added a 3-param to display_section to be compatible with old-style-apps --- preferences/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/preferences/index.php b/preferences/index.php index 9a648a7998..fbd1b22237 100755 --- a/preferences/index.php +++ b/preferences/index.php @@ -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))