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 -5
View File
@@ -360,11 +360,7 @@ class auth_plugin_base {
* Return the properly translated human-friendly title of this auth plugin
*/
function get_title() {
$authtitle = get_string("auth_{$this->authtype}title", "auth");
if ($authtitle == "[[auth_{$this->authtype}title]]") {
$authtitle = get_string("auth_{$this->authtype}title", "auth_{$this->authtype}");
}
return $authtitle;
return auth_get_plugin_title($this->authtype);
}
/**