Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Some dyslexic problem solved! :-D

  • Loading branch information...
commit da8648b4b5886e0b822b3cc46b6c9bb3567aa617 1 parent d1f9ad5
stronk7 authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 filter/activitynames/filter.php
6 filter/activitynames/filter.php
@@ -17,8 +17,8 @@ function activitynames_filter($courseid, $text) {
17 17 $course = get_record("course","id",$courseid);
18 18 $modinfo = unserialize($course->modinfo);
19 19
20   - //Sort modinfo by name lenght
21   - usort($modinfo,'comparemodulenamesbylenght');
  20 + //Sort modinfo by name length
  21 + usort($modinfo,'comparemodulenamesbylength');
22 22
23 23 if (!empty($modinfo)) {
24 24 $cm = '';
@@ -118,7 +118,7 @@ function activity_link_names($text,$name,$href_tag_begin,$href_tag_end = "</a>")
118 118 }
119 119
120 120 //This function is used to order module names from longer to shorter
121   - function comparemodulenamesbylenght($a, $b) {
  121 + function comparemodulenamesbylength($a, $b) {
122 122 if (strlen($a->name) == strlen($b->name)) {
123 123 return 0;
124 124 }

0 comments on commit da8648b

Please sign in to comment.
Something went wrong with that request. Please try again.