print_error('categorydoesnotexist', 'question', $returnurl);
}
-if ($cmid){
+if ($cmid) {
list($module, $cm) = get_module_from_cmid($cmid);
require_login($cm->course, false, $cm);
$thiscontext = get_context_instance(CONTEXT_MODULE, $cmid);
$chooseqtype = get_string('chooseqtypetoadd', 'question');
if ($cm !== null) {
$navlinks = array();
- if (stripos($returnurl, "$CFG->wwwroot/mod/{$cm->modname}/view.php")!== 0){
+ if (stripos($returnurl, "$CFG->wwwroot/mod/{$cm->modname}/view.php")!== 0) {
//don't need this link if returnurl returns to view.php
$navlinks[] = array('name' => get_string('editinga', 'moodle', get_string('modulename', $cm->modname)), 'link' => $returnurl, 'type' => 'title');
}
print_box_end();
print_footer($COURSE);
-
-
?>
\ No newline at end of file