mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-10338 - quiz index page does not work in weekscss format. Merged from MOODLE_18_STABLE.
This commit is contained in:
parent
b5a16eb72e
commit
f0bb0a8738
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@
|
||||||
$headings = array(get_string('name'), get_string('quizcloses', 'quiz'));
|
$headings = array(get_string('name'), get_string('quizcloses', 'quiz'));
|
||||||
$align = array('left', 'left');
|
$align = array('left', 'left');
|
||||||
$colsize = array('', '');
|
$colsize = array('', '');
|
||||||
if ($course->format == "weeks") {
|
if ($course->format == "weeks" || $course->format == "weekscss") {
|
||||||
array_unshift($headings, get_string('week'));
|
array_unshift($headings, get_string('week'));
|
||||||
array_unshift($align, 'center');
|
array_unshift($align, 'center');
|
||||||
array_unshift($colsize, 10);
|
array_unshift($colsize, 10);
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
|
|
||||||
// Section number if necessary.
|
// Section number if necessary.
|
||||||
$strsection = '';
|
$strsection = '';
|
||||||
if ($course->format == "weeks" or $course->format == "topics") {
|
if ($course->format == "weeks" || $course->format == "weekscss" || $course->format == "topics") {
|
||||||
if ($quiz->section !== $currentsection) {
|
if ($quiz->section !== $currentsection) {
|
||||||
if ($quiz->section) {
|
if ($quiz->section) {
|
||||||
$strsection = $quiz->section;
|
$strsection = $quiz->section;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue