helps wiki find global course
authormoodler <moodler>
Tue, 3 Aug 2004 04:08:11 +0000 (04:08 +0000)
committermoodler <moodler>
Tue, 3 Aug 2004 04:08:11 +0000 (04:08 +0000)
lib/weblib.php

index 252285339d1c3e71528fe116ba591d3697c829f9..7ae00d8cb778eed4b239c7affd5cd58612778ec3 100644 (file)
@@ -849,7 +849,7 @@ function text_to_html($text, $smiley=true, $para=true, $newlines=true) {
 
 function wiki_to_html($text) {
 /// Given Wiki formatted text, make it into XHTML using external function
-    global $CFG;
+    global $CFG, $course;
 
     require_once("$CFG->libdir/wiki.php");