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";