Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-26534 allow iframes in course category descriptions

  • Loading branch information...
commit 18174ef08201ddfa4343588c56c3aaafbde0847c 1 parent 6720f29
Daren Chandisingh authored skodak committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 course/category.php
View
7 course/category.php
@@ -57,7 +57,7 @@
if ($resort and confirm_sesskey()) {
if ($courses = get_courses($category->id, "fullname ASC", 'c.id,c.fullname,c.sortorder')) {
// move it off the range
-
+
$sortorderresult = get_record_sql('SELECT MIN(sortorder) AS min, 1
FROM ' . $CFG->prefix . 'course WHERE category=' . $category->id);
$sortordermin = $sortorderresult->min;
@@ -131,7 +131,10 @@
/// Print current category description
if (!$editingon && $category->description) {
print_box_start();
- echo format_text($category->description); // for multilang filter
+ $options = new stdClass();
+ $options->noclean = true;
+ $options->para = false;
+ echo format_text($category->description, FORMAT_MOODLE, $options); // for multilang filter
print_box_end();
}
Please sign in to comment.
Something went wrong with that request. Please try again.