From: thepurpleblob Date: Mon, 13 Aug 2007 13:26:16 +0000 (+0000) Subject: Should be $COURSE not $course X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=83601351d731c75a522bab3f4a4ff6cbadf967b6;p=moodle.git Should be $COURSE not $course --- diff --git a/question/export.php b/question/export.php index 5af47350cf..10095a6835 100644 --- a/question/export.php +++ b/question/export.php @@ -50,7 +50,7 @@ ? update_module_button($cm->id, $COURSE->id, get_string('modulename', $cm->modname)) : ""; $navlinks = array(); - $navlinks[] = array('name' => get_string('modulenameplural', $cm->modname), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/index.php?id=$course->id", 'type' => 'activity'); + $navlinks[] = array('name' => get_string('modulenameplural', $cm->modname), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/index.php?id=$COURSE->id", 'type' => 'activity'); $navlinks[] = array('name' => format_string($module->name), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/view.php?cmid={$cm->id}", 'type' => 'title'); $navlinks[] = array('name' => $txt->exportquestions, 'link' => '', 'type' => 'title'); $navigation = build_navigation($navlinks); diff --git a/question/import.php b/question/import.php index 153f7031d2..8a1ec932ce 100644 --- a/question/import.php +++ b/question/import.php @@ -59,7 +59,7 @@ ? update_module_button($cm->id, $COURSE->id, get_string('modulename', $cm->modname)) : ""; $navlinks = array(); - $navlinks[] = array('name' => get_string('modulenameplural', $cm->modname), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/index.php?id=$course->id", 'type' => 'activity'); + $navlinks[] = array('name' => get_string('modulenameplural', $cm->modname), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/index.php?id=$COURSE->id", 'type' => 'activity'); $navlinks[] = array('name' => format_string($module->name), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/view.php?cmid={$cm->id}", 'type' => 'title'); $navlinks[] = array('name' => $txt->importquestions, 'link' => '', 'type' => 'title'); $navigation = build_navigation($navlinks);