From: tjhunt Date: Tue, 17 Mar 2009 08:34:56 +0000 (+0000) Subject: Minor coding style cleanup. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=babcc520a7b5c6a4c17c8af86f1d5901778b0ddc;p=moodle.git Minor coding style cleanup. --- diff --git a/question/addquestion.php b/question/addquestion.php index 1e847f3e57..95402597fd 100644 --- a/question/addquestion.php +++ b/question/addquestion.php @@ -49,7 +49,7 @@ if (!$category = $DB->get_record('question_categories', array('id' => $categoryi 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); @@ -79,7 +79,7 @@ if (!empty($appendqnumstring)) { $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'); } @@ -101,6 +101,4 @@ print_choose_qtype_to_add_form($hiddenparams); print_box_end(); print_footer($COURSE); - - ?> \ No newline at end of file