]> git.mjollnir.org Git - moodle.git/commitdiff
Lists of names now use case insensitive sort (natcasesort);
authorrkingdon <rkingdon>
Mon, 21 Jun 2004 17:12:41 +0000 (17:12 +0000)
committerrkingdon <rkingdon>
Mon, 21 Jun 2004 17:12:41 +0000 (17:12 +0000)
Remove email flag setting from follow-up entry page, email is now a global option.

mod/dialogue/dialogues.php
mod/dialogue/locallib.php

index 0b3339b2f4760f0a20b74e56315e3e952a0054ff..df8d4816b3ce883d12e6c9930c0feb632dfa4609 100644 (file)
@@ -8,6 +8,7 @@
     getsubject
        insertentries
        openconversation
+    printdialogue
     showdialogues
     updatesubject
        
index 50e8f42287bd25a87fbbcba868ff06c7955dca2d..6be792ab15bd2296401b857aaa695aef837a164f 100644 (file)
@@ -149,7 +149,7 @@ global $USER;
                }
        }
     if (isset($names)) {
-        asort($names);
+        natcasesort($names);
         return $names;
     }
     return;
@@ -180,7 +180,7 @@ global $USER;
                }
        }
        if (isset($names)) {
-        asort($names);
+        natcasesort($names);
                return $names;
        }
        return;
@@ -233,7 +233,7 @@ function dialogue_list_conversations_closed($dialogue) {
                        }
             $names[$conversation->id] = fullname($with);
         }
-        asort($names);
+        natcasesort($names);
         
                print_simple_box_start();
                $table->head = array (get_string("dialoguewith", "dialogue"), get_string("subject", "dialogue"),  
@@ -294,7 +294,7 @@ function dialogue_list_conversations_other($dialogue) {
                        }
             $names[$conversation->id] = fullname($with);
         }
-        asort($names);
+        natcasesort($names);
         
                print_simple_box_start();
                $table->head = array (get_string("dialoguewith", "dialogue"), get_string("subject", "dialogue"),  
@@ -533,14 +533,6 @@ function dialogue_print_conversation($dialogue, $conversation) {
        print_simple_box_end();
        if ($showbutton) {
                echo "<hr />\n";
-               echo "<b>".get_string("sendmailmessages", "dialogue").":</b> \n";
-               if ($dialogue->maildefault) {
-                       echo "<input type=\"checkbox\" name=\"sendthis\" value=\"1\" checked> \n";
-               }
-               else {
-                       echo "<input type=\"checkbox\" name=\"sendthis\" value=\"1\"> \n";
-               }
-               helpbutton("sendmail", get_string("sendmailmessages", "dialogue"), "dialogue");
                echo "<br /><input type=\"submit\" value=\"".get_string("addmynewentry", "dialogue")."\">\n";
        }
        echo "</form>\n";