]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17294 removed unnecessary comments
authorpilpi <pilpi>
Fri, 28 Nov 2008 18:57:43 +0000 (18:57 +0000)
committerpilpi <pilpi>
Fri, 28 Nov 2008 18:57:43 +0000 (18:57 +0000)
mod/quiz/editlib.php

index d511f3b32d27f76bcb7e7df6c3256af1817c0b78..91c24f15ee31941da76078ad09e0a304a4199e0e 100644 (file)
@@ -705,8 +705,6 @@ function quiz_simple_question_list($pageurl, $categorylist, $numbertoshow=3,
                 "category $usql AND parent = '0' $showhidden",
                 $params, $sortorderdecoded, '*', 0, $numbertoshow)) {
             // There are no questions at all
-            //TODO: if moodle used PHP exceptions, we would raise one here so that
-            //the main UI would know to display quis status "unfinished".
             return;
         }
     }
@@ -782,7 +780,6 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
     check_theme_arrows();
     echo '<div class="quiz_randomquestion">';
 
-    //TODO: Tim? I left this out from the below get_record call:, , 'contextid' => $contextid
     if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
         notify('Random question category not found!');
         return;
@@ -938,7 +935,6 @@ function quiz_print_randomquestion_reordertool(&$question, &$pageurl, &$quiz){
 
     echo '<div class="quiz_randomquestion">';
 
-    //TODO: Tim? I left this out from the below get_record call:, 'contextid', $contextid
     if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
         notify('Random question category not found!');
         return;
@@ -1014,8 +1010,6 @@ function quiz_question_tostring(&$question,$showicon=false,$showquestiontext=tru
             if(!empty($questiontext)){
                 $result.=$questiontext;
             }else{
-                //TODO: if moodle used PHP exceptions, we would raise one here so that
-                //the main UI would know to display quis status "unfinished".
                 $result.='<span class="error">';
                 $result.= get_string("questiontextisempty","quiz");
                 $result.='</span>';