-
Bug
-
Resolution: Fixed
-
Minor
-
3.8.7, 3.10.1
-
MOODLE_310_STABLE, MOODLE_38_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
-
- Context
I discovered this misbehaviour working on a settings.php, where I need to use an admin_setting_description to show some parameterized string. I suppose it will work the same way in other parts of the Moodle.
-
- Scenario
Supose the string 'a' of the component 'b' is of the form "{$a}<br/>Some kind description".
-
- What works properly
get_string('a', 'b', 0) returns a string like "0<br/>Some kind description", replacing the given value inside the string.
-
- What doesn't work
new lang_string('a', 'b', 0) return a string like '{$a}<br/>Some kind description", without replacing the given value inside the string.
I do not know if any other cases with similar behaviour may produce similar side effects (like working with booleans or empty strings or so).