From 00a3a66a45d6c41ff108a818944b2aabfe4371ab Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 13 Dec 2004 01:31:54 +0000 Subject: [PATCH] Some dyslexic problem solved! :-D Merged from MOODLE_14_STABLE --- filter/activitynames/filter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filter/activitynames/filter.php b/filter/activitynames/filter.php index 8d222901a5..cc85b4720e 100644 --- a/filter/activitynames/filter.php +++ b/filter/activitynames/filter.php @@ -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 = ''; @@ -116,7 +116,7 @@ } //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; } -- 2.39.5