From b24dd0c67b66bb722559528d40cdd4d01d50b702 Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Wed, 25 Mar 2009 22:34:33 +0100 Subject: [PATCH] [svn r19330] minor change text buttons in dropbox see FS#3541 --- main/dropbox/dropbox_functions.inc.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/main/dropbox/dropbox_functions.inc.php b/main/dropbox/dropbox_functions.inc.php index 294ff1d142..8f1f5aed73 100644 --- a/main/dropbox/dropbox_functions.inc.php +++ b/main/dropbox/dropbox_functions.inc.php @@ -422,14 +422,20 @@ function display_addcategory_form($category_name='', $id='') } - if ($_GET['action']=='addreceivedcategory') - { + if ($_GET['action']=='addreceivedcategory') { $target='received'; } - if ($_GET['action']=='addsentcategory') - { + if ($_GET['action']=='addsentcategory') { $target='sent'; } + + if ($_GET['action']=='editcategory' and isset($_GET['id'])) { + $text=get_lang('ModifyCategory'); + $class='save'; + } else if ($_GET['action']=='addreceivedcategory') { + $text=get_lang('CreateCategory'); + $class='add'; + } echo "
\n"; @@ -452,7 +458,7 @@ function display_addcategory_form($category_name='', $id='') echo "\t\n"; echo "\t\n"; echo "\t\n"; - echo ""; + echo ""; echo "\t\n"; echo "\t\n"; echo "\n";