More changes to use fullname function rather than firstname lastname
authormjollnir_ <mjollnir_>
Thu, 30 Sep 2004 03:43:40 +0000 (03:43 +0000)
committermjollnir_ <mjollnir_>
Thu, 30 Sep 2004 03:43:40 +0000 (03:43 +0000)
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-108
    2004-09-30 03:31:29 GMT
    Penny Leach <penny@catalyst.net.nz>
    final changes to use fullname

Full logs:

Revision: moodle--eduforge--1.3.3--patch-108
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 30 15:31:29 NZST 2004
Standard-date: 2004-09-30 03:31:29 GMT
Modified-files: login/confirm.php mod/scorm/report.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-108
Summary: final changes to use fullname
Keywords:

login/confirm.php
mod/scorm/report.php

index 34478371a547f60549758c6677952fcaa524617e..5befc8b21acafdb6202bddc1bc7c4dab532f2301 100644 (file)
@@ -11,7 +11,7 @@
 
             if ($user->confirmed) {
                 print_header(get_string("alreadyconfirmed"), get_string("alreadyconfirmed"), "", "");
-                echo "<center><h3>".get_string("thanks").", ". $user->firstname ." ". $user->lastname . "</h3>\n";
+                echo "<center><h3>".get_string("thanks").", ". fullname($user) . "</h3>\n";
                 echo "<h4>".get_string("alreadyconfirmed")."</h4>\n";
                 echo "<h3> -> <a href=\"$CFG->wwwroot/course/\">".get_string("courses")."</a></h3></center>\n";
                 print_footer();
@@ -50,7 +50,7 @@
                 }
  
                 print_header(get_string("confirmed"), get_string("confirmed"), "", "");
-                echo "<center><h3>".get_string("thanks").", ". $USER->firstname ." ". $USER->lastname . "</h3>\n";
+                echo "<center><h3>".get_string("thanks").", ". fullname($USER) . "</h3>\n";
                 echo "<h4>".get_string("confirmed")."</h4>\n";
                 echo "<h3> -> <a href=\"$CFG->wwwroot/course/\">".get_string("courses")."</a></h3></center>\n";
                 print_footer();
index 234c7aa740697c5257a03b3fcea906edf9e5e46a..6f34137ad0bcde5d74fc691296587fc19ffcfef9 100755 (executable)
@@ -89,7 +89,7 @@
                        if (is_array($user_data)) {
                                $data = current($user_data);
                                $row[] = "<a href=\"$CFG->wwwroot/user/view.php?id=$data->userid&amp;course=$course->id\">".
-                                        "$data->firstname $data->lastname</a>";
+                                        fullname($data)."</a>";
                                foreach ($user_data as $data) {
                                    $scoreview = "";
                                    if ($data->cmi_core_score_raw > 0)