Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Two things:

Mergin bugfix from HEAD:
Site events were being created for $course->id = 1 even when SITEID != 1.

And also:
Allow <span> in event titles, someone may be using multilang there.
  • Loading branch information...
commit 398b3a2b83b57c0611c93ec403118ce0e80369fe 1 parent 514c862
defacer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 calendar/event.php
View
4 calendar/event.php
@@ -113,7 +113,7 @@
if($form = data_submitted()) {
- $form->name = strip_tags($form->name,'<lang>'); // Strip all tags, but <lang>
+ $form->name = clean_text(strip_tags($form->name,'<lang><span>'));
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
if($form->duration == 1) {
@@ -455,7 +455,7 @@
case 'site':
$form->name = '';
$form->description = '';
- $form->courseid = 1;
+ $form->courseid = SITEID;
$form->groupid = 0;
$form->userid = $USER->id;
$form->modulename = '';
Please sign in to comment.
Something went wrong with that request. Please try again.