MDL-15304, MDL-15526 fixing regression; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-07-03 23:01:32 +00:00
parent 98b9add6a1
commit a38f12927e

View File

@ -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)) {