MDL-48115 badges: Fix strtoupper() output in badges

Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
This commit is contained in:
Yuliya Bozhko 2014-11-12 09:25:58 +13:00
parent 683d7de4d1
commit ae17e383ef
3 changed files with 5 additions and 5 deletions

View File

@ -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'));
}

View File

@ -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();
}

View File

@ -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');