]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Change Profile->getUser() to match the current user
authorMartin Lyth <bsfmartini@gmail.com>
Thu, 30 Jun 2016 22:24:58 +0000 (18:24 -0400)
committerMartin Lyth <bsfmartini@gmail.com>
Thu, 30 Jun 2016 22:24:58 +0000 (18:24 -0400)
commitd7a29be3ac6862f5af5c8d0cdda6cea605f59a53
treed3a9eac3b65ff64787c6e3a3e794a502a55949cf
parenta833eaa6513a3f7e5732721996877e442a0af100
Change Profile->getUser() to match the current user

Profile->getUser() gets the User independently from common_current_user.
This means that changes to one does not affect the other, even if they
are the same user.
This changes that, so that getUser() returns common_current_user() if
they are both the same user.

This is done to fix a bug in the user profile settings, where changes in
the language and timezone are applied to the return value of
Profile->getUser() but not propagated to common_cur_user(), which causes
the profile settings to display incorrect information until the page is
refreshed.
classes/Profile.php