mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-48115 badges: Fix strtoupper() output in badges
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
This commit is contained in:
parent
683d7de4d1
commit
ae17e383ef
@ -223,7 +223,7 @@ abstract class award_criteria {
|
||||
if (!empty($this->params)) {
|
||||
if (count($this->params) > 1) {
|
||||
echo $OUTPUT->box(get_string('criteria_descr_' . $this->criteriatype, 'badges',
|
||||
strtoupper($agg[$data->get_aggregation_method($this->criteriatype)])), array('clearfix'));
|
||||
core_text::strtoupper($agg[$data->get_aggregation_method($this->criteriatype)])), array('clearfix'));
|
||||
} else {
|
||||
echo $OUTPUT->box(get_string('criteria_descr_single_' . $this->criteriatype , 'badges'), array('clearfix'));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ class award_criteria_overall extends award_criteria {
|
||||
echo html_writer::table($table);
|
||||
} else {
|
||||
echo $OUTPUT->box(get_string('criteria_descr_' . $this->criteriatype, 'badges',
|
||||
strtoupper($agg[$data->get_aggregation_method()])), 'clearfix');
|
||||
core_text::strtoupper($agg[$data->get_aggregation_method()])), 'clearfix');
|
||||
}
|
||||
echo $OUTPUT->box_end();
|
||||
}
|
||||
|
@ -362,7 +362,7 @@ class core_badges_renderer extends plugin_renderer_base {
|
||||
$items[] = get_string('criteria_descr_single_' . $type , 'badges') . $c->get_details();
|
||||
} else {
|
||||
$items[] = get_string('criteria_descr_' . $type , 'badges',
|
||||
strtoupper($agg[$badge->get_aggregation_method($type)])) . $c->get_details();
|
||||
core_text::strtoupper($agg[$badge->get_aggregation_method($type)])) . $c->get_details();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -716,7 +716,7 @@ class core_badges_renderer extends plugin_renderer_base {
|
||||
}
|
||||
} else {
|
||||
$output .= get_string('criteria_descr_' . $short . BADGE_CRITERIA_TYPE_OVERALL, 'badges',
|
||||
strtoupper($agg[$badge->get_aggregation_method()]));
|
||||
core_text::strtoupper($agg[$badge->get_aggregation_method()]));
|
||||
}
|
||||
$items = array();
|
||||
unset($badge->criteria[BADGE_CRITERIA_TYPE_OVERALL]);
|
||||
@ -725,7 +725,7 @@ class core_badges_renderer extends plugin_renderer_base {
|
||||
$items[] = get_string('criteria_descr_single_' . $short . $type , 'badges') . $c->get_details($short);
|
||||
} else {
|
||||
$items[] = get_string('criteria_descr_' . $short . $type , 'badges',
|
||||
strtoupper($agg[$badge->get_aggregation_method($type)])) . $c->get_details($short);
|
||||
core_text::strtoupper($agg[$badge->get_aggregation_method($type)])) . $c->get_details($short);
|
||||
}
|
||||
}
|
||||
$output .= html_writer::alist($items, array(), 'ul');
|
||||
|
Loading…
x
Reference in New Issue
Block a user