Skip to content

Commit

Permalink
MDL-11759 group edit cleanup; merged from MOODLE_18_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jan 18, 2008
1 parent 4559ab3 commit 3980c30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions group/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
if (!$group = get_record('groups', 'id', $id)) {
error('Group ID was incorrect');
}
$group->description = clean_text($group->description);
if (empty($courseid)) {
$courseid = $group->courseid;

Expand Down
1 change: 1 addition & 0 deletions group/grouping.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
if (!$grouping = get_record('groupings', 'id', $id)) {
error('Group ID was incorrect');
}
$grouping->description = clean_text($grouping->description);
if (empty($courseid)) {
$courseid = $grouping->courseid;

Expand Down
4 changes: 2 additions & 2 deletions group/overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
}
$line = array();
$name = format_string($groups[$gpid]->name);
$jsdescription = addslashes_js(trim($groups[$gpid]->description));
$jsdescription = addslashes_js(trim(format_text($groups[$gpid]->description)));
if (empty($jsdescription)) {
$line[] = $name;
} else {
Expand All @@ -174,7 +174,7 @@
print_heading($strnotingrouping, '', 3);
} else {
print_heading(format_string($groupings[$gpgid]->name), '', 3);
print_box($groupings[$gpgid]->description, 'generalbox boxwidthnarrow boxaligncenter');
print_box(format_text($groupings[$gpgid]->description), 'generalbox boxwidthnarrow boxaligncenter');
}
}
print_table($table, false);
Expand Down

0 comments on commit 3980c30

Please sign in to comment.