Permalink
Browse files

$courseid now sent to wiki conversion properly

  • Loading branch information...
1 parent 546764d commit 963c3b552d63c6b8b3f952b8e0295673e0e49d5c thepurpleblob committed Aug 27, 2004
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/weblib.php
View
@@ -623,7 +623,7 @@ function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL
break;
case FORMAT_WIKI:
- $text = wiki_to_html($text);
+ $text = wiki_to_html($text,$courseid);
$text = rebuildnolinktag($text);
if (!isset($options->noclean)) {
$text = clean_text($text, $format);
@@ -908,14 +908,14 @@ function text_to_html($text, $smiley=true, $para=true, $newlines=true) {
}
}
-function wiki_to_html($text) {
+function wiki_to_html($text,$courseid) {
/// Given Wiki formatted text, make it into XHTML using external function
- global $CFG, $course;
+ global $CFG;
require_once("$CFG->libdir/wiki.php");
$wiki = new Wiki;
- return $wiki->format($text);
+ return $wiki->format($text,$courseid);
}
function markdown_to_html($text) {

0 comments on commit 963c3b5

Please sign in to comment.