Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some dyslexic problem solved! :-D

  • Loading branch information...
commit da8648b4b5886e0b822b3cc46b6c9bb3567aa617 1 parent d1f9ad5
stronk7 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 filter/activitynames/filter.php
View
6 filter/activitynames/filter.php
@@ -17,8 +17,8 @@ function activitynames_filter($courseid, $text) {
$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 = '';
@@ -118,7 +118,7 @@ function activity_link_names($text,$name,$href_tag_begin,$href_tag_end = "</a>")
}
//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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.