mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Small (but important) typo solved. It was preventing coursesql to work.
This commit is contained in:
parent
805788218b
commit
8e4d01032a
1 changed files with 2 additions and 2 deletions
|
@ -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" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue