diff options
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/user.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php index 210e428a2e0..97f302c826e 100644 --- a/lib/private/legacy/user.php +++ b/lib/private/legacy/user.php @@ -281,16 +281,14 @@ class OC_User { } /** - * Supplies an attribute to the logout hyperlink. The default behaviour - * is to return an href with '?logout=true' appended. However, it can - * supply any attribute(s) which are valid for <a>. + * Returns the current logout URL valid for the currently logged-in user * - * @return string with one or more HTML attributes. + * @return string */ - public static function getLogoutAttribute() { + public static function getLogoutUrl() { $backend = self::findFirstActiveUsedBackend(); if ($backend) { - return $backend->getLogoutAttribute(); + return $backend->getLogoutUrl(); } $logoutUrl = \OC::$server->getURLGenerator()->linkToRouteAbsolute( @@ -300,7 +298,7 @@ class OC_User { ] ); - return 'href="'.$logoutUrl.'"'; + return $logoutUrl; } /** |