mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Strip some trailing whitespace.
This commit is contained in:
parent
c52c62d1b1
commit
a6a89b9eab
@ -30,7 +30,7 @@
|
||||
// the data about student interaction with the questions. The functions to do
|
||||
// that are included with the following library
|
||||
require_once("$CFG->dirroot/question/backuplib.php");
|
||||
|
||||
|
||||
/*
|
||||
* Insert necessary category ids to backup_ids table. Called during backup_check.html.
|
||||
* This backs up ids for quiz module. It backs up :
|
||||
@ -41,13 +41,13 @@
|
||||
function quiz_insert_category_and_question_ids($course, $backup_unique_code, $instances = null) {
|
||||
global $CFG;
|
||||
$status = true;
|
||||
|
||||
|
||||
// Create missing categories and reasign orphaned questions.
|
||||
quiz_fix_orphaned_questions($course);
|
||||
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course);
|
||||
$status = $status && question_insert_c_and_q_ids_for_course($coursecontext, $backup_unique_code);
|
||||
|
||||
|
||||
// then, all categories and questions from this course's modules' contexts.
|
||||
$status = $status && question_insert_c_and_q_ids_for_module($backup_unique_code, $course, 'quiz', $instances);
|
||||
|
||||
@ -157,7 +157,7 @@
|
||||
}
|
||||
return $status;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Helper function adding the id of all the subcategories of a category to an array.
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@
|
||||
require_login($course, true, $cm);
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
|
||||
|
||||
require_capability('mod/quiz:grade', $context);
|
||||
|
||||
// Load question
|
||||
@ -40,7 +40,7 @@
|
||||
}
|
||||
$question->maxgrade = get_field('quiz_question_instances', 'grade', 'quiz', $quiz->id, 'question', $question->id);
|
||||
// Some of the questions code is optimised to work with several questions
|
||||
// at once so it wants the question to be in an array.
|
||||
// at once so it wants the question to be in an array.
|
||||
$key = $question->id;
|
||||
$questions[$key] = &$question;
|
||||
// Add additional questiontype specific information to the question objects.
|
||||
@ -56,7 +56,7 @@
|
||||
|
||||
print_header();
|
||||
print_heading(format_string($question->name));
|
||||
|
||||
|
||||
//add_to_log($course->id, 'quiz', 'review', "review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id", "$cm->id");
|
||||
|
||||
if ($data = data_submitted() and confirm_sesskey()) {
|
||||
@ -70,8 +70,8 @@
|
||||
|
||||
notify(get_string('changessaved'));
|
||||
echo '<div class="boxaligncenter"><input type="button" onclick="window.opener.location.reload(1); self.close();return false;" value="' .
|
||||
get_string('closewindow') . "\" /></div>";
|
||||
|
||||
get_string('closewindow') . "\" /></div>";
|
||||
|
||||
print_footer();
|
||||
exit;
|
||||
}
|
||||
|
@ -126,7 +126,7 @@
|
||||
<td>
|
||||
<input name="timelimitenable" type="checkbox" value="1" alt="<?php print_string('timelimit', 'quiz') ?>" onclick="return lockoptions('form', 'timelimitenable', timelimititems)" <?php if ($form->timelimit) echo 'checked="checked"' ?> />
|
||||
<input type="text" name="timelimit" size="3" value="<?php p($form->timelimit ? $form->timelimit : '') ?>" />
|
||||
<?php
|
||||
<?php
|
||||
print_string('minutes');
|
||||
helpbutton("timelimit", get_string("quiztimer","quiz"), "quiz");
|
||||
?>
|
||||
@ -328,7 +328,7 @@
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="hidden" name="fix_delay2" value="0" />
|
||||
<input type="checkbox" name="fix_delay2" value="1" <?php echo $CFG->quiz_fix_delay2 ? 'checked="checked"' : ''; ?> />
|
||||
<input type="checkbox" name="fix_delay2" value="1" <?php echo $CFG->quiz_fix_delay2 ? 'checked="checked"' : ''; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -384,7 +384,7 @@
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
<?php
|
||||
if (!$form->timelimit) echo "lockoptions('form','timelimitenable', timelimititems);";
|
||||
?>
|
||||
</script>
|
||||
|
@ -88,7 +88,7 @@ $mod_quiz_capabilities = array(
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
|
||||
'mod/quiz:ignoretimelimits' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
|
@ -354,7 +354,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreak
|
||||
print_string('reordertool', 'quiz');
|
||||
echo ' ';
|
||||
helpbutton('reorderingtool', get_string('reordertool', 'quiz'), 'quiz');
|
||||
|
||||
|
||||
echo '<div class="quizquestionlistcontrols"><input type="submit" name="repaginate" value="'. get_string('go') .'" /></div>';
|
||||
echo '</fieldset>';
|
||||
echo '</form>';
|
||||
|
@ -25,7 +25,7 @@ class page_quiz extends page_generic_activity {
|
||||
$this->activityname = 'quiz';
|
||||
parent::init_quick($data);
|
||||
}
|
||||
|
||||
|
||||
function get_type() {
|
||||
return PAGE_QUIZ_VIEW;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@
|
||||
|
||||
$question->maxgrade = get_field('quiz_question_instances', 'grade', 'quiz', $quiz->id, 'question', $question->id);
|
||||
// Some of the questions code is optimised to work with several questions
|
||||
// at once so it wants the question to be in an array.
|
||||
// at once so it wants the question to be in an array.
|
||||
$key = $question->id;
|
||||
$questions[$key] = &$question;
|
||||
// Add additional questiontype specific information to the question objects.
|
||||
|
Loading…
x
Reference in New Issue
Block a user