diff --git a/admin/handlevirus.php b/admin/handlevirus.php
index f2b20e2126a..7a09c1eb672 100644
--- a/admin/handlevirus.php
+++ b/admin/handlevirus.php
@@ -40,7 +40,7 @@ while(!feof($fd)) {
$user = get_record("user","id",$log->userid);
$course = get_record("course","id",$log->course);
- $subject = get_string('virusfoundsubject','moodle',$site->fullname);
+ $subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$a->date = userdate($log->time);
$a->action = $action;
@@ -78,7 +78,7 @@ function notify_admins_unknown($file,$a) {
global $site;
$admins = get_admins();
- $subject = get_string('virusfoundsubject','moodle',$site->fullname);
+ $subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$body = get_string('virusfoundlateradminnolog','moodle',$a);
foreach ($admins as $admin) {
email_to_user($admin,$admin,$subject,$body);
diff --git a/admin/mnet/enr_course_enrol.php b/admin/mnet/enr_course_enrol.php
index 906e2280f46..94af92e1753 100644
--- a/admin/mnet/enr_course_enrol.php
+++ b/admin/mnet/enr_course_enrol.php
@@ -258,7 +258,7 @@ $strsearchresults = get_string('searchresults');
admin_externalpage_print_header($adminroot);
print_box('' . s($mnet_peer->name) . ' : '
- . s($course->shortname) .' '. s($course->fullname)
+ . format_string($course->shortname) .' '. format_string($course->fullname)
. '
'
. get_string("enrolcourseenrol_desc", "mnet"));
diff --git a/admin/mnet/enr_courses.php b/admin/mnet/enr_courses.php
index 079668f5abf..f1157dbe1b9 100644
--- a/admin/mnet/enr_courses.php
+++ b/admin/mnet/enr_courses.php
@@ -41,10 +41,10 @@
. "host={$mnethost}&courseid={$course->id}&sesskey={$USER->sesskey}";
print ('
';
} else if (has_capability('moodle/role:unassignself', $context, NULL, false)) { // Have some role
- $this->content->items[]=''.get_string('unenrolme', '', s($course->shortname)).'';
+ $this->content->items[]=''.get_string('unenrolme', '', format_string($course->shortname)).'';
$this->content->icons[]='
';
}
}
diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php
index df9b145ec41..ba7329c6a83 100644
--- a/blocks/course_list/block_course_list.php
+++ b/blocks/course_list/block_course_list.php
@@ -44,8 +44,8 @@ class block_course_list extends block_list {
continue;
}
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
- $this->content->items[]="shortname) . "\" ".
- "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">" . s($course->fullname) . "";
+ $this->content->items[]="shortname) . "\" ".
+ "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">" . format_string($course->fullname) . "";
$this->content->icons[]=$icon;
}
$this->title = get_string('mycourses');
@@ -65,7 +65,7 @@ class block_course_list extends block_list {
if (count($categories) > 1 || (count($categories) == 1 && count_records('course') > 200)) { // Just print top level category links
foreach ($categories as $category) {
$linkcss = $category->visible ? "" : " class=\"dimmed\" ";
- $this->content->items[]="wwwroot/course/category.php?id=$category->id\">" . s($category->name) . "";
+ $this->content->items[]="wwwroot/course/category.php?id=$category->id\">" . format_string($category->name) . "";
$this->content->icons[]=$icon;
}
$this->content->icons[] = '';
@@ -83,14 +83,18 @@ class block_course_list extends block_list {
if ($courses) {
foreach ($courses as $course) {
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
- $this->content->items[]="shortname)."\" ".
- "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname";
+
+ $this->content->items[]="shortname)."\" ".
+ "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">"
+ . format_string($course->fullname) . "";
$this->content->icons[]=$icon;
}
/// If we can update any course of the view all isn't hidden, show the view all courses link
if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) {
$this->content->icons[] = '';
- $this->content->items[] = " wwwroot/course/index.php\">".get_string("fulllistofcourses")."...";
+ $this->content->items[] = " wwwroot/course/index.php\">"
+ .get_string("fulllistofcourses")."...";
}
$this->get_remote_courses();
} else {
@@ -123,8 +127,9 @@ class block_course_list extends block_list {
$this->content->items[] = get_string('remotecourses','mnet');
$this->content->icons[] = '';
foreach ($courses as $course) {
- $this->content->items[]="shortname\" ".
- "href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&wantsurl=/course/view.php?id={$course->remoteid}\">$course->fullname";
+ $this->content->items[]="shortname) . "\" ".
+ "href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&wantsurl=/course/view.php?id={$course->remoteid}\">"
+ . format_string($course->fullname) . "";
$this->content->icons[]=$icon;
}
// if we listed courses, we are done
diff --git a/course/category.php b/course/category.php
index 25faccaab9a..f3dd90587fb 100644
--- a/course/category.php
+++ b/course/category.php
@@ -225,7 +225,7 @@
}
$catlinkcss = $subcategory->visible ? "" : " class=\"dimmed\" ";
echo ''.
- $subcategory->name.'
' : ''),
- s($course->shortname),s($course->fullname),fullname($requester),
- s($course->summary),s($course->reason),
+ format_string($course->shortname),format_string($course->fullname),fullname($requester),
+ format_string($course->summary),format_string($course->reason),
''.get_string('approve').' | '
.''.get_string('reject').'');
}
diff --git a/course/recent.php b/course/recent.php
index 173a7b96464..af2f60f1aed 100644
--- a/course/recent.php
+++ b/course/recent.php
@@ -44,15 +44,15 @@
$dateinfo = userdate($date, get_string("strftimedaydate"));
if ($course->id != SITEID) {
- print_header("$course->shortname: $strrecentactivity", "$course->fullname",
+ print_header("$course->shortname: $strrecentactivity", $course->fullname,
"id\">$course->shortname ->
id\">$strrecentactivity -> $userinfo, $dateinfo", "", $meta);
} else {
- print_header("$course->shortname: $strrecentactivity", "$course->fullname",
+ print_header("$course->shortname: $strrecentactivity", $course->fullname,
"id\">$strrecentactivity -> $userinfo, $dateinfo", "", $meta);
}
- print_heading("$course->fullname: $userinfo, $dateinfo (".usertimezone().")", '', 3);
+ print_heading(format_string($course->fullname) . ": $userinfo, $dateinfo (".usertimezone().")", '', 3);
$advancedfilter = 1;
print_recent_selector_form($course, $advancedfilter, $user, $date, $modname, $modid, $modaction, $selectedgroup, $sortby);
@@ -69,10 +69,10 @@
}
if ($course->id != SITEID) {
- print_header("$course->shortname: $strrecentactivity", "$course->fullname",
+ print_header("$course->shortname: $strrecentactivity", $course->fullname,
"id\">$course->shortname -> $strrecentactivity", "", $meta);
} else {
- print_header("$course->shortname: $strrecentactivity", "$course->fullname",
+ print_header("$course->shortname: $strrecentactivity", $course->fullname,
"$strrecentactivity", "", $meta);
}
diff --git a/course/report/log/index.php b/course/report/log/index.php
index 8943b2c1241..8d7edcc30cb 100644
--- a/course/report/log/index.php
+++ b/course/report/log/index.php
@@ -86,7 +86,7 @@
id\">$strlogs -> $userinfo, $dateinfo", '');
}
- print_heading("$course->fullname: $userinfo, $dateinfo (".usertimezone().")");
+ print_heading(format_string($course->fullname) . ": $userinfo, $dateinfo (".usertimezone().")");
print_mnet_log_selector_form($hostid, $course, $user, $date, $modname, $modid, $modaction, $group, $showcourses, $showusers, $logformat);
if($hostid == $CFG->mnet_localhost_id) {
diff --git a/course/report/log/lib.php b/course/report/log/lib.php
index 380fcfaa219..67fe479cda7 100644
--- a/course/report/log/lib.php
+++ b/course/report/log/lib.php
@@ -335,7 +335,7 @@ 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"] = $cc->fullname;
} else {
$courses["$cc->id"] = " $cc->fullname (Site)";
}
diff --git a/course/report/outline/index.php b/course/report/outline/index.php
index 01752e33851..c4c45fdfbd9 100644
--- a/course/report/outline/index.php
+++ b/course/report/outline/index.php
@@ -29,12 +29,12 @@
$strtodaylogs = get_string("todaylogs");
$strreports = get_string("reports");
- print_header("$course->shortname: $stractivityreport", "$course->fullname",
+ print_header("$course->shortname: $stractivityreport", $course->fullname,
"id\">$course->shortname ->
id\">$strreports ->
$stractivityreport");
- print_heading("$course->fullname");
+ print_heading(format_string($course->fullname));
echo "| $stractivityreport: | "; diff --git a/course/report/participation/index.php b/course/report/participation/index.php index 818ac251613..5220203ea7a 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -51,10 +51,10 @@ $strallactions = get_string('allactions'); $strreports = get_string('reports'); - $strnav = "id\">$course->shortname -> + $strnav = "id\">" . format_string($course->shortname) . " -> id\">$strreports -> ". $strparticipation; - print_header("$course->shortname: $strparticipation", "$course->fullname", + print_header("$course->shortname: $strparticipation", $course->fullname, "id\">$course->shortname -> id\">$strreports -> $strparticipation"); diff --git a/course/report/stats/index.php b/course/report/stats/index.php index ddf11eb5e23..187e815036e 100644 --- a/course/report/stats/index.php +++ b/course/report/stats/index.php @@ -54,11 +54,11 @@ $menu = report_stats_mode_menu($course, $mode, $time, "$CFG->wwwroot/course/report/stats/index.php"); - $crumb = "id\">$course->shortname -> + $crumb = "id\">" . format_string($course->shortname) . " -> id\">$strreports -> $strstats"; - print_header("$course->shortname: $strstats", "$course->fullname", + print_header("$course->shortname: $strstats", $course->fullname, $crumb, '', '', true, ' ', $menu); diff --git a/course/report/stats/report.php b/course/report/stats/report.php index f3159a84d4e..5cf737e666f 100644 --- a/course/report/stats/report.php +++ b/course/report/stats/report.php @@ -107,7 +107,7 @@ $stats = stats_fix_zeros($stats,$param->timeafter,$param->table,(!empty($param->line2))); - print_heading($course->shortname.' - '.get_string('statsreport'.$report) + print_heading(format_string($course->shortname).' - '.get_string('statsreport'.$report) .((!empty($user)) ? ' '.get_string('statsreportforuser').' ' .fullname($user,true) : '') .((!empty($roleid)) ? ' '.get_field('role','name','id',$roleid) : '')); diff --git a/course/scales.php b/course/scales.php index 5838d96cea0..efbe8cf763c 100644 --- a/course/scales.php +++ b/course/scales.php @@ -105,7 +105,7 @@ // $scales_site_uses = site_scale_used($scale->id,$courses); $scalemenu = make_menu_from_list($scale->scale); - print_header("$course->shortname: $strscales", "$course->fullname", + print_header("$course->shortname: $strscales", $course->fullname, "$course->shortname -> $strscales -> $scale->name", "", "", true, " ", " "); close_window_button(); @@ -164,7 +164,7 @@ } //Print out the headers - print_header("$course->shortname: $strscales", "$course->fullname", + print_header("$course->shortname: $strscales", $course->fullname, "id\">$course->shortname". " -> id\">$strscales". " -> ".get_string("editinga","",$strscale), $focus); @@ -372,7 +372,7 @@ /// Print out the main page - print_header("$course->shortname: $strscales", "$course->fullname", + print_header("$course->shortname: $strscales", $course->fullname, "id\">$course->shortname -> $strscales"); diff --git a/course/search.php b/course/search.php index d8b1667b432..dc1944cab9b 100644 --- a/course/search.php +++ b/course/search.php @@ -232,7 +232,7 @@ } echo "|||
| id\">$course->fullname | "; + echo "id\">" . format_string($course->fullname) . " | "; echo "".$displaylist[$course->category]." | "; echo "";
diff --git a/course/user.php b/course/user.php
index 1c084ef66cf..653573d3c70 100644
--- a/course/user.php
+++ b/course/user.php
@@ -43,13 +43,13 @@
$fullname = fullname($user, true);
if ($course->id != SITEID) {
- print_header("$course->shortname: $stractivityreport ($mode)", "$course->fullname",
+ print_header("$course->shortname: $stractivityreport ($mode)", $course->fullname,
"id\">$course->shortname ->
id\">$strparticipants ->
id&course=$course->id\">$fullname ->
$stractivityreport -> $strmode");
} else {
- print_header("$course->shortname: $stractivityreport ($mode)", "$course->fullname",
+ print_header("$course->shortname: $stractivityreport ($mode)", $course->fullname,
"id&course=$course->id\">$fullname ->
$stractivityreport -> $strmode");
}
diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php
index 1e6883d2fbc..42fb074cce9 100755
--- a/enrol/authorize/enrol.php
+++ b/enrol/authorize/enrol.php
@@ -258,7 +258,7 @@ class enrolment_plugin_authorize
$a->user = fullname($USER);
email_to_user($paymentmanager,
$USER,
- get_string("enrolmentnew", '', $course->shortname),
+ get_string("enrolmentnew", '', format_string($course->shortname)),
get_string('enrolmentnewuser', '', $a));
}
if (!empty($CFG->enrol_mailadmins)) {
@@ -269,7 +269,7 @@ class enrolment_plugin_authorize
foreach ($admins as $admin) {
email_to_user($admin,
$USER,
- get_string("enrolmentnew", '', $course->shortname),
+ get_string("enrolmentnew", '', format_string($course->shortname)),
get_string('enrolmentnewuser', '', $a));
}
}
diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php
index 86cc78a9884..42443da0290 100644
--- a/enrol/authorize/locallib.php
+++ b/enrol/authorize/locallib.php
@@ -242,7 +242,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("$authstrs->amount:", "$order->currency $order->amount");
if (empty($cmdcapture) and empty($cmdrefund) and empty($cmdvoid) and empty($cmddelete)) {
$color = authorize_get_status_color($status->status);
- $table->data[] = array("$strs->course:", $course->shortname);
+ $table->data[] = array("$strs->course:", format_string($course->shortname));
$table->data[] = array("$strs->status:", "" . $authstrs->{$status->status} . "");
if ($order->paymentmethod == AN_METHOD_CC) {
$table->data[] = array("$authstrs->nameoncard:", $order->ccname);
@@ -287,7 +287,7 @@ function authorize_print_order_details($orderno)
}
else {
$table->data[] = array("$strs->error:",
- "Error while trying to enrol ".fullname($user)." in '$course->shortname'");
+ "Error while trying to enrol ".fullname($user)." in '" . format_string($course->shortname) . "'");
}
}
else {
diff --git a/enrol/database/enrol.php b/enrol/database/enrol.php
index 3d99bc3ed86..b3d017da1e4 100644
--- a/enrol/database/enrol.php
+++ b/enrol/database/enrol.php
@@ -283,9 +283,9 @@ function sync_enrolments($role = null) {
if ($to_prune) {
foreach ($to_prune as $role_assignment) {
if (role_unassign($role->id, $role_assignment->userid, 0, $role_assignment->contextid)){
- print "Unassigned {$role->shortname} assignment #{$role_assignment->id} for course {$course->id} ({$course->shortname}); user {$role_assignment->userid}\n";
+ print "Unassigned {$role->shortname} assignment #{$role_assignment->id} for course {$course->id} (" . format_string($course->shortname) . "); user {$role_assignment->userid}\n";
} else {
- print "Failed to unassign {$role->shortname} assignment #{$role_assignment->id} for course {$course->id} ({$course->shortname}); user {$role_assignment->userid}\n";
+ print "Failed to unassign {$role->shortname} assignment #{$role_assignment->id} for course {$course->id} (" . format_string($course->shortname) . "); user {$role_assignment->userid}\n";
}
}
}
@@ -325,9 +325,9 @@ function sync_enrolments($role = null) {
}
if (role_assign($role->id, $userid, 0, $context->id, 0, 0, 0, 'database')){
- print "Assigned role {$role->shortname} to user {$userid} in course {$course->id} ({$course->shortname})\n";
+ print "Assigned role {$role->shortname} to user {$userid} in course {$course->id} (" . format_string($course->shortname) . ")\n";
} else {
- print "Failed to assign role {$role->shortname} to user {$userid} in course {$course->id} ({$course->shortname})\n";
+ print "Failed to assign role {$role->shortname} to user {$userid} in course {$course->id} (" . format_string($course->shortname) . ")\n";
}
} // end foreach member
diff --git a/enrol/imsenterprise/importnow.php b/enrol/imsenterprise/importnow.php
index b04bc5c51d7..a5af41dcabe 100644
--- a/enrol/imsenterprise/importnow.php
+++ b/enrol/imsenterprise/importnow.php
@@ -10,7 +10,7 @@ if (!$site = get_site()) {
/// get language strings
$str = get_strings(array('enrolments', 'users', 'administration', 'settings'));
-print_header("$site->shortname: $str->enrolments", "$site->fullname",
+print_header("$site->shortname: $str->enrolments", $site->fullname,
"admin/index.php\">$str->administration ->
$str->enrolments -> IMS import");
diff --git a/enrol/mnet/allowed_courses.php b/enrol/mnet/allowed_courses.php
index 9612667fae9..176e596635d 100644
--- a/enrol/mnet/allowed_courses.php
+++ b/enrol/mnet/allowed_courses.php
@@ -155,7 +155,7 @@ if (count($categories) < 1) {
getElementById('allowedcoursesform').addcategories.selectedIndex=-1;" >
id\"> $category->name \n";
+ echo "\n";
}
?>
@@ -176,7 +176,7 @@ if (count($categories) < 1) {
getElementById('allowedcoursesform').removecategories.selectedIndex=-1;">
id\"> $category->name \n";
+ echo "\n";
}
?>
@@ -212,7 +212,7 @@ if (count($courses) < 1) {
getElementById('allowedcoursesform').addcourses.selectedIndex=-1;">
id\"> $course->shortname \n";
+ echo "\n";
}
?>
@@ -233,7 +233,7 @@ if (count($courses) < 1) {
getElementById('allowedcoursesform').removecourses.selectedIndex=-1;">
id\"> $course->shortname \n";
+ echo "\n";
}
?>
diff --git a/enrol/paypal/ipn.php b/enrol/paypal/ipn.php
index 2052db5208b..5c6becab354 100644
--- a/enrol/paypal/ipn.php
+++ b/enrol/paypal/ipn.php
@@ -168,21 +168,21 @@
$teacher = get_teacher($course->id);
if (!empty($CFG->enrol_mailstudents)) {
- $a->coursename = "$course->fullname";
+ $a->coursename = $course->fullname;
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id";
email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname),
get_string('welcometocoursetext', '', $a));
}
if (!empty($CFG->enrol_mailteachers)) {
- $a->course = "$course->fullname";
+ $a->course = $course->fullname;
$a->user = fullname($user);
email_to_user($teacher, $user, get_string("enrolmentnew", '', $course->shortname),
get_string('enrolmentnewuser', '', $a));
}
if (!empty($CFG->enrol_mailadmins)) {
- $a->course = "$course->fullname";
+ $a->course = $course->fullname;
$a->user = fullname($user);
$admins = get_admins();
foreach ($admins as $admin) {
diff --git a/files/index.php b/files/index.php
index a9c05745615..b6b9143bdc6 100644
--- a/files/index.php
+++ b/files/index.php
@@ -130,7 +130,7 @@
}
} else {
- print_header("$course->shortname: $strfiles", "$course->fullname",
+ print_header("$course->shortname: $strfiles", $course->fullname,
"id\">$course->shortname".
" -> $fullnav", $formfield);
}
diff --git a/grade/exceptions.php b/grade/exceptions.php
index 90657b3eeff..33782963800 100644
--- a/grade/exceptions.php
+++ b/grade/exceptions.php
@@ -16,7 +16,7 @@
$group = get_current_group($course->id);
- print_header("$course->shortname: ".get_string('grades'), "$course->fullname", grade_nav($course, $action));
+ print_header("$course->shortname: ".get_string('grades'), $course->fullname, grade_nav($course, $action));
grade_preferences_menu($action, $course, $group);
diff --git a/grade/lib.php b/grade/lib.php
index d4a1ae7b70a..4422b0b0a06 100644
--- a/grade/lib.php
+++ b/grade/lib.php
@@ -2362,7 +2362,8 @@ function grade_set_grade_weights() {
}
}
else {
- echo ' '; + echo ' '; } } } @@ -2403,7 +2404,7 @@ function grade_display_grade_weights() { if ($category->name == UNCATEGORISED) { $category->name = get_string(UNCATEGORISED, 'grades'); } - echo ' |
| '.$category->name.' | '; + echo '|||
| '. format_string($category->name) .' | '; echo ''; echo ' | '; echo ' | '; @@ -2701,10 +2702,10 @@ function grade_category_select($id_selected = 0) { $category->name = get_string('uncategorised', 'grades'); } if ($category->id == $id_selected) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } } } diff --git a/group/assign.php b/group/assign.php index 1887152bb83..38416ed5be6 100644 --- a/group/assign.php +++ b/group/assign.php @@ -78,7 +78,7 @@ if ($success) { $groupname = groups_get_group_displayname($groupid); print_header("$course->shortname: $strgroups", - "$course->fullname", + $course->fullname, "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> $strgroups", '', '', true, '', user_login_string($course, $USER)); diff --git a/group/group.php b/group/group.php index a2bf058d8b7..6408fc0f6fb 100644 --- a/group/group.php +++ b/group/group.php @@ -139,7 +139,7 @@ if ($success) { /// Print the page and form print_header("$course->shortname: ". $strheading, - "$course->fullname", + $course->fullname, "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> $strgroups", '', '', true, '', user_login_string($course, $USER)); diff --git a/group/grouping.php b/group/grouping.php index 16cebb6339a..0ea021bb814 100644 --- a/group/grouping.php +++ b/group/grouping.php @@ -104,7 +104,7 @@ if ($success) { /// Print the page and form print_header("$course->shortname: $strgroups", - "$course->fullname", + $course->fullname, "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> $strgroups", '', '', true, '', user_login_string($course, $USER)); diff --git a/group/groupui/index.php b/group/groupui/index.php index 4761d5591ee..48f3181cd8b 100644 --- a/group/groupui/index.php +++ b/group/groupui/index.php @@ -48,7 +48,7 @@ if (!$error) { $strparticipants = get_string('participants'); // Print the page and form print_header("$course->shortname: $strgroups", - "$course->fullname", + $course->fullname, "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> $strgroups", "", "", true, '', user_login_string($course, $USER)); diff --git a/group/groupui/printgrouping.php b/group/groupui/printgrouping.php index 34da1bf2a43..726f60a4ed5 100644 --- a/group/groupui/printgrouping.php +++ b/group/groupui/printgrouping.php @@ -38,7 +38,7 @@ if ($success) { // Print the page and form $strgroups = get_string('groups'); $strparticipants = get_string('participants'); - print_header("$course->shortname: $strgroups", "$course->fullname", + print_header("$course->shortname: $strgroups", $course->fullname, "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> wwwroot/group/groupui/index.php?id=$courseid\">$strgroups". diff --git a/group/index.php b/group/index.php index b38555c0915..19e14b40c4e 100644 --- a/group/index.php +++ b/group/index.php @@ -145,7 +145,7 @@ if ($success) { $strparticipants = get_string('participants'); print_header("$course->shortname: $strgroups home", //TODO: home - "$course->fullname", + $course->fullname, "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> $strgroups", '', '', true, '', user_login_string($course, $USER)); @@ -154,7 +154,7 @@ if ($success) { //TODO: eventually we'll implement all buttons, meantime hide the ones we haven't finised. $shownotdone = false; - print_heading($course->shortname.' '.$strgroups, 'center', 3); + print_heading(format_string($course->shortname) .' '.$strgroups, 'center', 3); ?> |