mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
Merge branch 'MDL-75116' of https://github.com/aolley/moodle
This commit is contained in:
commit
972ea1a41d
@ -438,14 +438,20 @@ class feedback_item_multichoice extends feedback_item_base {
|
||||
$info->horizontal = false;
|
||||
|
||||
$parts = explode(FEEDBACK_MULTICHOICE_TYPE_SEP, $item->presentation);
|
||||
@list($info->subtype, $info->presentation) = $parts;
|
||||
$info->subtype = $parts[0];
|
||||
if (count($parts) > 1) {
|
||||
$info->presentation = $parts[1];
|
||||
}
|
||||
if (!isset($info->subtype)) {
|
||||
$info->subtype = 'r';
|
||||
}
|
||||
|
||||
if ($info->subtype != 'd') {
|
||||
$parts = explode(FEEDBACK_MULTICHOICE_ADJUST_SEP, $info->presentation);
|
||||
@list($info->presentation, $info->horizontal) = $parts;
|
||||
$info->presentation = $parts[0];
|
||||
if (count($parts) > 1) {
|
||||
$info->horizontal = $parts[1];
|
||||
}
|
||||
if (isset($info->horizontal) AND $info->horizontal == 1) {
|
||||
$info->horizontal = true;
|
||||
} else {
|
||||
|
@ -376,7 +376,10 @@ class feedback_item_multichoicerated extends feedback_item_base {
|
||||
$info->horizontal = false;
|
||||
|
||||
$parts = explode(FEEDBACK_MULTICHOICERATED_TYPE_SEP, $item->presentation);
|
||||
@list($info->subtype, $info->presentation) = $parts;
|
||||
$info->subtype = $parts[0];
|
||||
if (count($parts) > 1) {
|
||||
$info->presentation = $parts[1];
|
||||
}
|
||||
|
||||
if (!isset($info->subtype)) {
|
||||
$info->subtype = 'r';
|
||||
@ -384,7 +387,10 @@ class feedback_item_multichoicerated extends feedback_item_base {
|
||||
|
||||
if ($info->subtype != 'd') {
|
||||
$parts = explode(FEEDBACK_MULTICHOICERATED_ADJUST_SEP, $info->presentation);
|
||||
@list($info->presentation, $info->horizontal) = $parts;
|
||||
$info->presentation = $parts[0];
|
||||
if (count($parts) > 1) {
|
||||
$info->horizontal = $parts[1];
|
||||
}
|
||||
|
||||
if (isset($info->horizontal) AND $info->horizontal == 1) {
|
||||
$info->horizontal = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user