]> git.mjollnir.org Git - moodle.git/commitdiff
$ME is not always reliable in this case
authormoodler <moodler>
Wed, 5 Jan 2005 07:22:08 +0000 (07:22 +0000)
committermoodler <moodler>
Wed, 5 Jan 2005 07:22:08 +0000 (07:22 +0000)
message/index.php
message/lib.php
message/search.html
message/settings.html

index a1fe38b871f930e0168c3ffc3379d4cce0e6112e..824e5619dfc6354fd891b8a19c78c2b41d53dc43 100644 (file)
@@ -55,13 +55,13 @@ if ($tab == 'contacts') {
 <table cellspacing="2" cellpadding="2" border="0" align="center" width="95%">
 <tr>
     <th class="<?php echo ($tab == 'contacts') ? 'generaltabselected' : 'generaltab' ?>">
-        <a href="<?php echo $ME ?>?tab=contacts">contacts</a>
+        <a href="<?php echo $CFG->wwwroot.'/message/index.php' ?>?tab=contacts">contacts</a>
     </th>
     <th class="<?php echo ($tab == 'search') ? 'generaltabselected' : 'generaltab' ?>">
-        <a href="<?php echo $ME ?>?tab=search">search</a>
+        <a href="<?php echo $CFG->wwwroot.'/message/index.php' ?>?tab=search">search</a>
     </th>
     <th class="<?php echo ($tab == 'settings') ? 'generaltabselected' : 'generaltab' ?>">
-        <a href="<?php echo $ME ?>?tab=settings">settings</a>
+        <a href="<?php echo $CFG->wwwroot.'/message/index.php' ?>?tab=settings">settings</a>
     </th>
 </tr>
 <tr>
index 88800826ee374deff08374f5f5239f35f6c976a0..157eed0be484b289297740318bdf472b4330dad1 100644 (file)
@@ -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 '<div align="center">';
 
@@ -502,7 +502,7 @@ function message_print_search_results($frm) {
     }
 
     echo '<br />';
-    print_single_button($ME, array( 'tab' => 'search'), get_string('newsearch', 'message') );
+    print_single_button('index.php', array( 'tab' => 'search'), get_string('newsearch', 'message') );
 
     echo '</div>';
 }
index 033b90f152e683cdd68b52e4aac06d9956b1f2ef..84fd00c57e52b482e0f058e9d7f9308998432c51 100644 (file)
@@ -1,4 +1,4 @@
-<form name="personsearch" action="<?php echo $ME ?>" method="post">
+<form name="personsearch" action="index.php" method="post">
 <input type="hidden" name="tab" value="search" />
 
 
index 4c8dc8ecb9fb8cfab688bf5ba70b8e8d3d5fb150..002d49ebc5c60d792ca6524dc17d272af60bbe34 100644 (file)
@@ -1,4 +1,4 @@
-<form name="message_settings" action="<?php echo $ME ?>" method="post">
+<form name="message_settings" action="index.php" method="post">
 <input type="hidden" name="tab" value="settings" />