From: Marcel Werk Date: Thu, 18 Aug 2016 18:41:47 +0000 (+0200) Subject: Fixed links in 'signed in as' box X-Git-Tag: 3.0.0_Beta_1~681 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=831a56e1a394e43ea61a0ed5a7d72c72e35afd84;p=GitHub%2FWoltLab%2FWCF.git Fixed links in 'signed in as' box --- 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; + } }