From: moodler Date: Wed, 5 Jan 2005 07:22:08 +0000 (+0000) Subject: $ME is not always reliable in this case X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9ae3253e6eeffbe2a8be2ebc9b9ad70c6b38de77;p=moodle.git $ME is not always reliable in this case --- diff --git a/message/index.php b/message/index.php index a1fe38b871..824e5619df 100644 --- a/message/index.php +++ b/message/index.php @@ -55,13 +55,13 @@ if ($tab == 'contacts') { diff --git a/message/lib.php b/message/lib.php index 88800826ee..157eed0be4 100644 --- a/message/lib.php +++ b/message/lib.php @@ -205,7 +205,7 @@ function message_count_messages($messagearray, $field='', $value='') { function message_print_search() { - global $ME, $USER; + global $USER; if ($frm = data_submitted()) { @@ -227,7 +227,7 @@ function message_print_search() { } function message_print_settings() { - global $ME, $USER; + global $USER; if ($frm = data_submitted()) { $pref = array(); @@ -242,7 +242,7 @@ function message_print_settings() { set_user_preferences($pref); - redirect($ME, get_string('settingssaved', 'message'), 1); + redirect('index.php', get_string('settingssaved', 'message'), 1); } $cbshowmessagewindow = (get_user_preferences('message_showmessagewindow', 1) == '1') ? 'checked="checked"' : ''; @@ -314,7 +314,7 @@ function message_get_contact($contactid) { function message_print_search_results($frm) { - global $ME, $USER, $CFG; + global $USER, $CFG; echo '
'; @@ -502,7 +502,7 @@ function message_print_search_results($frm) { } echo '
'; - print_single_button($ME, array( 'tab' => 'search'), get_string('newsearch', 'message') ); + print_single_button('index.php', array( 'tab' => 'search'), get_string('newsearch', 'message') ); echo '
'; } diff --git a/message/search.html b/message/search.html index 033b90f152..84fd00c57e 100644 --- a/message/search.html +++ b/message/search.html @@ -1,4 +1,4 @@ - + diff --git a/message/settings.html b/message/settings.html index 4c8dc8ecb9..002d49ebc5 100644 --- a/message/settings.html +++ b/message/settings.html @@ -1,4 +1,4 @@ - +
- contacts + contacts - search + search - settings + settings