From 831a56e1a394e43ea61a0ed5a7d72c72e35afd84 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 18 Aug 2016 20:41:47 +0200 Subject: [PATCH] Fixed links in 'signed in as' box --- com.woltlab.wcf/templates/boxSignedInAs.tpl | 2 +- .../files/lib/system/user/UserProfileHandler.class.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/boxSignedInAs.tpl b/com.woltlab.wcf/templates/boxSignedInAs.tpl index 13609f2cc5..3bd70c4300 100644 --- a/com.woltlab.wcf/templates/boxSignedInAs.tpl +++ b/com.woltlab.wcf/templates/boxSignedInAs.tpl @@ -15,7 +15,7 @@
- {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()} + {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()}
\ No newline at end of file diff --git a/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php b/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php index 4086f0a081..430c74d3a4 100644 --- a/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php @@ -57,4 +57,13 @@ class UserProfileHandler extends SingletonFactory { public function reloadUserProfile() { $this->userProfile = new UserProfile(new User($this->userID)); } + + /** + * Returns the user profile object. + * + * @return UserProfile + */ + public function getUserProfile() { + return $this->userProfile; + } } -- 2.20.1