]> git.mjollnir.org Git - moodle.git/commitdiff
Tweaks
authormoodler <moodler>
Mon, 24 May 2004 09:00:59 +0000 (09:00 +0000)
committermoodler <moodler>
Mon, 24 May 2004 09:00:59 +0000 (09:00 +0000)
admin/filters.php

index abb3b5df2aa3ff992dc2fbf95f95bd7368d343d0..f09156ce7fa71e29f05a65335ca8121a39c83fa3 100644 (file)
@@ -51,8 +51,8 @@
         $plugins = get_list_of_plugins($filterlocation);
         foreach ($plugins as $key => $plugin) {
             if (is_readable("$CFG->dirroot/$filterlocation/$plugin/filter.php")) {
-                $name = get_string("filtername", $plugin);
-                if ($name == "[[filtername]]") {
+                $name = trim(get_string("filtername", $plugin));
+                if (empty($name) or $name == "[[filtername]]") {
                     $name = $plugin;
                 }
                 $allfilters["$filterlocation/$plugin"] = $name;