mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-15304, MDL-15526 fixing regression; merged from MOODLE_19_STABLE
This commit is contained in:
parent
98b9add6a1
commit
a38f12927e
@ -9,8 +9,8 @@ function get_label_name($label) {
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
$name = strip_tags(format_string($label->content,true));
|
||||
if ($textlib->strlen($label->name) > LABEL_MAX_NAME_LENGTH) {
|
||||
$label->name = $textlib->substr($label->name, 0, LABEL_MAX_NAME_LENGTH)."...";
|
||||
if ($textlib->strlen($name) > LABEL_MAX_NAME_LENGTH) {
|
||||
$name = $textlib->substr($name, 0, LABEL_MAX_NAME_LENGTH)."...";
|
||||
}
|
||||
|
||||
if (empty($name)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user