From 205e53357c29ce950d20e0a72c484ec6c13e0f52 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 24 May 2004 09:00:59 +0000 Subject: [PATCH] Tweaks --- admin/filters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/filters.php b/admin/filters.php index abb3b5df2a..f09156ce7f 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -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; -- 2.39.5