]> git.mjollnir.org Git - moodle.git/commitdiff
Some dyslexic problem solved! :-D
authorstronk7 <stronk7>
Mon, 13 Dec 2004 01:31:54 +0000 (01:31 +0000)
committerstronk7 <stronk7>
Mon, 13 Dec 2004 01:31:54 +0000 (01:31 +0000)
Merged from MOODLE_14_STABLE

filter/activitynames/filter.php

index 8d222901a5c117f81e20bea45a56762c98ad6539..cc85b4720ee5f7f339a426440a0ed83b88c8a005 100644 (file)
@@ -15,8 +15,8 @@
         $course = get_record("course","id",$courseid);
         $modinfo = unserialize($course->modinfo);
 
-        //Sort modinfo by name lenght
-        usort($modinfo,'comparemodulenamesbylenght'); 
+        //Sort modinfo by name length
+        usort($modinfo,'comparemodulenamesbylength'); 
 
         if (!empty($modinfo)) {
             $cm = '';
     }
 
     //This function is used to order module names from longer to shorter
-    function comparemodulenamesbylenght($a, $b)  {
+    function comparemodulenamesbylength($a, $b)  {
         if (strlen($a->name) == strlen($b->name)) {
             return 0;
         }