]> git.mjollnir.org Git - moodle.git/commitdiff
Minor coding style cleanup.
authortjhunt <tjhunt>
Tue, 17 Mar 2009 08:34:56 +0000 (08:34 +0000)
committertjhunt <tjhunt>
Tue, 17 Mar 2009 08:34:56 +0000 (08:34 +0000)
question/addquestion.php

index 1e847f3e576875493b6545024d85595d5407ade3..95402597fd839462d7909d4fce33beac694a5550 100644 (file)
@@ -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