Skip to content

Commit

Permalink
MDL-15268 "Content for Quiz Statistics report table" some fixes to st…
Browse files Browse the repository at this point in the history
…rings.
  • Loading branch information
jamiesensei committed Jul 14, 2008
1 parent 04c8148 commit fb94cd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lang/en_utf8/quiz_statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$string['calculatefrom'] = 'Calculate statistics from';


$string['duration'] = 'Open for';
$string['quizinformation'] = 'Quiz information';
$string['quizoverallstatistics'] = 'Quiz overall statistics';
$string['quizname'] = 'Quiz name';
Expand All @@ -14,8 +15,8 @@
$string['noofallattempts'] = 'Total number of attempts';
$string['statsfor'] = 'Statistics (for $a)';
$string['attempts'] = 'Attempts';
$string['firstattempts'] = 'for first attempts';
$string['allattempts'] = 'for all attempts';
$string['firstattempts'] = 'first attempts';
$string['allattempts'] = 'all attempts';
$string['firstattemptsavg'] = 'Average grade of first attempts';
$string['allattemptsavg'] = 'Average grade of all attempts';
$string['attemptsall'] = 'all attempts';
Expand Down
6 changes: 3 additions & 3 deletions mod/quiz/report/statistics/report.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* This script lists student attempts
* This script calculates various statistics about student attempts
*
* @version $Id$
* @author Martin Dougiamas, Tim Hunt and others.
* @author Martin Dougiamas, Jamie Pratt, Tim Hunt and others.
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package quiz
*//** */
Expand Down Expand Up @@ -98,7 +98,7 @@ function display($quiz, $cm, $course) {
$quizinformationtable->data[] = array(get_string('quizclose', 'quiz'), userdate($quiz->timeclose));
}
if ($quiz->timeopen && $quiz->timeclose){
$quizinformationtable->data[] = array(get_string('duration'), format_time($quiz->timeclose - $quiz->timeopen));
$quizinformationtable->data[] = array(get_string('duration', 'quiz_statistics'), format_time($quiz->timeclose - $quiz->timeopen));
}
print_table($quizinformationtable);
}
Expand Down

0 comments on commit fb94cd4

Please sign in to comment.