From 8e4d01032a8740e682e3fa3ce35fea2e910edd80 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 12 Apr 2005 16:56:34 +0000 Subject: [PATCH] Small (but important) typo solved. It was preventing coursesql to work. --- lib/wiki_to_markdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wiki_to_markdown.php b/lib/wiki_to_markdown.php index 9de3dc3ee10..a4520eb7e85 100644 --- a/lib/wiki_to_markdown.php +++ b/lib/wiki_to_markdown.php @@ -374,7 +374,7 @@ class WikiToMarkdown { // $thing = the database name for that 'thing' (eg, resource, choice) // $textfield = the name of the field that might hold the wiki-text // $formatfield = the name of the field that contains the format type - // $course = if supplied, the query to get the courseid, if not get from the 'course' field + // $coursesql = if supplied, the query to get the courseid, if not get from the 'course' field // ($id of record is tacked on right at the end, so phrase accordingly) // returns a count of records converted $count = 0; @@ -382,7 +382,7 @@ class WikiToMarkdown { foreach( $records as $record ) { $text = $record->$textfield; $id = $record->id; - if (!$courseisql) { + if (!$coursesql) { $courseid = $record->course; } else { $r = get_record( $coursesql . "$id" );