]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15304
authorthepurpleblob <thepurpleblob>
Tue, 8 Jul 2008 08:45:26 +0000 (08:45 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 8 Jul 2008 08:45:26 +0000 (08:45 +0000)
Remove the item number from the created label name. It doesn't work for new labels.

Merged from STABLE_19

mod/label/lib.php

index bbcc4f1e8a7865455be0f346e45c643d219a2cd2..e50cf0fc96d55325291d02c7f5cf06f5ca62c48d 100644 (file)
@@ -15,7 +15,7 @@ function get_label_name($label) {
 
     if (empty($name)) {
         // arbitrary name
-        $name = "label{$label->instance}";
+        $name = "label";
     }
 
     return $name;