diff --git a/main/glossary/index.php b/main/glossary/index.php
index c3d5dd8ba5..891dd8133a 100755
--- a/main/glossary/index.php
+++ b/main/glossary/index.php
@@ -55,7 +55,7 @@ $fck_attribute['ToolbarSet'] = 'Glossary';
echo '
';
if (api_is_allowed_to_edit())
{
- echo '
'.Display::return_icon('filenew.gif',get_lang('TermAddNew')).get_lang('TermAddNew').'';
+ echo '
'.Display::return_icon('filenew.gif',get_lang('TermAddNew')).get_lang('TermAddNew').'';
}
echo '
'.Display::return_icon('view_list.gif',get_lang('ListView')).get_lang('ListView').'';
echo '
'.Display::return_icon('view_table.gif',get_lang('TableView')).get_lang('TableView').'';
@@ -71,7 +71,9 @@ if (api_is_allowed_to_edit())
// Adding a glossary
if (isset($_GET['action']) && $_GET['action'] == 'addglossary')
{
- api_display_tool_title(get_lang('TermAddNew'));
+ if (isset($_GET['msg']) && $_GET['msg'] == 'add') {
+ api_display_tool_title(get_lang('TermAddNew'));
+ }
// initiate the object
$form = new FormValidator('glossary','post', api_get_self().'?action='.Security::remove_XSS($_GET['action']));
// settting the form elements
@@ -106,7 +108,9 @@ if (api_is_allowed_to_edit())
// Editing a glossary
else if (isset($_GET['action']) && $_GET['action'] == 'edit_glossary' && is_numeric($_GET['glossary_id']))
{
- api_display_tool_title(get_lang('TermEdit'));
+ if (isset($_GET['msg']) && $_GET['msg'] == 'edit') {
+ api_display_tool_title(get_lang('TermEdit'));
+ }
// initiate the object
$form = new FormValidator('glossary','post', api_get_self().'?action='.Security::remove_XSS($_GET['action']).'&glossary_id='.Security::remove_XSS($_GET['glossary_id']));
// settting the form elements
@@ -362,8 +366,8 @@ function display_glossary()
$table->set_header(0, get_lang('DisplayOrder'), true);
$table->set_header(1, get_lang('TermName'), true);
$table->set_header(2, get_lang('TermDefinition'), true);
- $table->set_header(3, get_lang('CreationDate'), true);
- $table->set_header(4, get_lang('UpdateDate'), true);
+ $table->set_header(3, get_lang('CreationDate'), false);
+ $table->set_header(4, get_lang('UpdateDate'), false);
if (api_is_allowed_to_edit()) {
$table->set_header(5, get_lang('Actions'), false);
$table->set_column_filter(5, 'actions_filter');
@@ -500,7 +504,7 @@ function actions_filter($glossary_id,$url_params,$row)
}
}
- $return .= '
'.Display::return_icon('edit.gif',get_lang('Edit')).'';
+ $return .= '
'.Display::return_icon('edit.gif',get_lang('Edit')).'';
$return .= '
'.Display::return_icon('delete.gif', get_lang('Delete')).'';
return $return;
}
diff --git a/main/notebook/index.php b/main/notebook/index.php
index 4808f12395..472abf76bf 100755
--- a/main/notebook/index.php
+++ b/main/notebook/index.php
@@ -68,7 +68,7 @@ else
echo '
';
//if (api_is_allowed_to_edit())
//{
- echo '
'.Display::return_icon('filenew.gif',get_lang('NoteAddNew')).get_lang('NoteAddNew').'';
+ echo '
'.Display::return_icon('filenew.gif',get_lang('NoteAddNew')).get_lang('NoteAddNew').'';
//}
echo '
'.Display::return_icon('calendar_select.gif',get_lang('OrderByCreationDate')).get_lang('OrderByCreationDate').'';
echo '
'.Display::return_icon('calendar_select.gif',get_lang('OrderByModificationDate')).get_lang('OrderByModificationDate').'';
@@ -80,7 +80,9 @@ if (isset($_GET['action']) && $_GET['action'] == 'addnote')
{
// initiate the object
$_SESSION['notebook_view'] = 'creation_date';
- api_display_tool_title(get_lang('NoteAddNew'));
+ if (isset($_GET['msg']) && $_GET['msg'] == 'add') {
+ api_display_tool_title(get_lang('NoteAddNew'));
+ }
$form = new FormValidator('note','post', api_get_self().'?action='.Security::remove_XSS($_GET['action']));
// settting the form elements
$form->addElement('text', 'note_title', get_lang('NoteTitle'));
@@ -114,7 +116,10 @@ if (isset($_GET['action']) && $_GET['action'] == 'addnote')
// Action handling: Editing a note
else if (isset($_GET['action']) && $_GET['action'] == 'editnote' && is_numeric($_GET['notebook_id']))
{
- api_display_tool_title(get_lang('NoteEdit'));
+ if (isset($_GET['msg']) && $_GET['msg'] == 'edit') {
+ api_display_tool_title(get_lang('NoteEdit'));
+ }
+
// initiate the object
$form = new FormValidator('note','post', api_get_self().'?action='.Security::remove_XSS($_GET['action']).'¬ebook_id='.Security::remove_XSS($_GET['notebook_id']));
// settting the form elements
@@ -304,7 +309,7 @@ function display_notes()
echo '
';
echo '';
echo '
';
}