Fixed links in 'signed in as' box
authorMarcel Werk <burntime@woltlab.com>
Thu, 18 Aug 2016 18:41:47 +0000 (20:41 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 18 Aug 2016 18:41:47 +0000 (20:41 +0200)
com.woltlab.wcf/templates/boxSignedInAs.tpl
wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php

index 13609f2cc56ea17fefbd768b9b40b296b6e54850..3bd70c43006988e2c8c6dfa620fb38eb7a2940d3 100644 (file)
@@ -15,7 +15,7 @@
                </div>
                
                <dl class="plain dataList containerContent small">
-                       {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()}
+                       {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()}
                </dl>
        </div>
 </div>
\ No newline at end of file
index 4086f0a08157daff5a161f0471339eaa9b96ae2d..430c74d3a44b1bab9051876c2dde348afd887f9f 100644 (file)
@@ -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;
+       }
 }