From: stronk7 Date: Mon, 13 Dec 2004 01:31:54 +0000 (+0000) Subject: Some dyslexic problem solved! :-D X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=00a3a66a45d6c41ff108a818944b2aabfe4371ab;p=moodle.git Some dyslexic problem solved! :-D Merged from MOODLE_14_STABLE --- 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; }