MDL-55491 badges: Add missing format_string call

Extra version bump + trailing whitespace removal.
This commit is contained in:
David Monllao 2018-04-11 17:55:45 +02:00
parent 728b851eb5
commit 27fef51d48
3 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ class award_criteria_cohort extends award_criteria {
if (!$cohortname) {
$str = $OUTPUT->error_text(get_string('error:nosuchcohort', 'badges'));
} else {
$str = html_writer::tag('b', '"' . $cohortname . '"');
$str = html_writer::tag('b', '"' . format_string($cohortname, true) . '"');
}
$output[] = $str;
}

View File

@ -166,7 +166,7 @@ Feature: Award badges based on cohort
And I log in as "user2"
And I follow "Profile" in the user menu
And I should not see "Site Badge"
@javascript
Scenario: Award badge based on a single cohort membership or other criteria.
Given the following "cohorts" exist:
@ -222,7 +222,7 @@ Feature: Award badges based on cohort
And I log in as "user3"
And I follow "Profile" in the user menu
And I should not see "Site Badge"
@javascript
Scenario: Award badge based on a multiple cohort membership or other criteria.
Given the following "cohorts" exist:

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2018040500.02; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2018040500.03; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.