summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/LLAuthPlugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/LLAuthPlugin.php b/extensions/LLAuthPlugin.php
index fa3d0703..f95a562b 100644
--- a/extensions/LLAuthPlugin.php
+++ b/extensions/LLAuthPlugin.php
@@ -121,7 +121,12 @@ public function initUser( &$user, $autocreate=false ) {
}
public function getCanonicalName( $username ) {
- return strtoupper(substr($username, 0, 1)).substr($username, 1);
+ try {
+ $data = $this->getUserData($username);
+ } catch (Exception $e) {
+ return false;
+ }
+ return strtoupper(substr($data['name'], 0, 1)).substr($data['name'], 1);
}
}