MDL-55491 badges: Add missing format_string call
authorDavid Monllao <davidm@moodle.com>
Wed, 11 Apr 2018 15:55:45 +0000 (17:55 +0200)
committerDavid Monllao <davidm@moodle.com>
Wed, 11 Apr 2018 15:55:45 +0000 (17:55 +0200)
Extra version bump + trailing whitespace removal.

badges/criteria/award_criteria_cohort.php
badges/tests/behat/criteria_cohort.feature
version.php

index e49ceab..1e0bb80 100644 (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;
         }
index 323cf4d..6f5f816 100644 (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:
index 5c6af2e..760e7be 100644 (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.