authentication MDL-18273 Custom Authentication Plugin title can be retrieved from specific language file, merged from 19

This commit is contained in:
jerome
2009-05-14 07:03:27 +00:00
parent dc247e5232
commit 2a274f2a93
6 changed files with 18 additions and 12 deletions
+1 -4
View File
@@ -41,10 +41,7 @@ if ($hassiteconfig
$authbyname = array();
foreach ($auths as $auth) {
$strauthname = get_string("auth_{$auth}title", "auth");
if ($strauthname == "[[auth_{$auth}title]]") {
$strauthname = get_string("auth_{$auth}title", "auth_{$auth}");
}
$strauthname = auth_get_plugin_title($auth);
$authbyname[$strauthname] = $auth;
}
ksort($authbyname);