mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
quiz editing: MDL-17294 removed unnecessary comments
This commit is contained in:
parent
38faf00984
commit
49a020c672
1 changed files with 0 additions and 6 deletions
|
@ -705,8 +705,6 @@ function quiz_simple_question_list($pageurl, $categorylist, $numbertoshow=3,
|
||||||
"category $usql AND parent = '0' $showhidden",
|
"category $usql AND parent = '0' $showhidden",
|
||||||
$params, $sortorderdecoded, '*', 0, $numbertoshow)) {
|
$params, $sortorderdecoded, '*', 0, $numbertoshow)) {
|
||||||
// There are no questions at all
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -782,7 +780,6 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
|
||||||
check_theme_arrows();
|
check_theme_arrows();
|
||||||
echo '<div class="quiz_randomquestion">';
|
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))) {
|
if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
|
||||||
notify('Random question category not found!');
|
notify('Random question category not found!');
|
||||||
return;
|
return;
|
||||||
|
@ -938,7 +935,6 @@ function quiz_print_randomquestion_reordertool(&$question, &$pageurl, &$quiz){
|
||||||
|
|
||||||
echo '<div class="quiz_randomquestion">';
|
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))) {
|
if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
|
||||||
notify('Random question category not found!');
|
notify('Random question category not found!');
|
||||||
return;
|
return;
|
||||||
|
@ -1014,8 +1010,6 @@ function quiz_question_tostring(&$question,$showicon=false,$showquestiontext=tru
|
||||||
if(!empty($questiontext)){
|
if(!empty($questiontext)){
|
||||||
$result.=$questiontext;
|
$result.=$questiontext;
|
||||||
}else{
|
}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.='<span class="error">';
|
||||||
$result.= get_string("questiontextisempty","quiz");
|
$result.= get_string("questiontextisempty","quiz");
|
||||||
$result.='</span>';
|
$result.='</span>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue