]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8582 - xhtml course report fixes
authorpoltawski <poltawski>
Thu, 15 Mar 2007 16:03:44 +0000 (16:03 +0000)
committerpoltawski <poltawski>
Thu, 15 Mar 2007 16:03:44 +0000 (16:03 +0000)
course/report/log/lib.php

index 67fe479cda7e293f093b20549573a0c8d6e82870..132de869679f2bff18d5233a16b195b6517a1312 100644 (file)
@@ -102,9 +102,9 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
                 if ($ccc = get_records("course", "", "", "fullname","id,fullname,category")) {
                     foreach ($ccc as $cc) {
                         if ($cc->id == SITEID) {
-                            $sites["$hostid/$cc->id"]   = $cc->fullname.' ('.get_string('site').')';
+                            $sites["$hostid/$cc->id"]   = format_string($cc->fullname).' ('.get_string('site').')';
                         } else {
-                            $courses["$hostid/$cc->id"] = $cc->fullname;
+                            $courses["$hostid/$cc->id"] = format_string($cc->fullname);
                         }
                     }
                 }
@@ -335,9 +335,9 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
         if ($ccc = get_records("course", "", "", "fullname","id,fullname,category")) {
             foreach ($ccc as $cc) {
                 if ($cc->category) {
-                    $courses["$cc->id"] = $cc->fullname;
+                    $courses["$cc->id"] = format_string($cc->fullname);
                 } else {
-                    $courses["$cc->id"] = " $cc->fullname (Site)";
+                    $courses["$cc->id"] = format_string($cc->fullname) . ' (Site)';
                 }
             }
         }