From: Evan Prodromou Date: Mon, 22 Feb 2010 16:03:56 +0000 (-0500) Subject: clear the site owner when profile changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a6967db6cbe0e864c8d542700008bba99a7b095;p=quix0rs-gnu-social.git clear the site owner when profile changes --- diff --git a/actions/profilesettings.php b/actions/profilesettings.php index 0d67778791..161e35b111 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -285,6 +285,10 @@ class ProfilesettingsAction extends AccountSettingsAction } else { // Re-initialize language environment if it changed common_init_language(); + // Clear the site owner, in case nickname changed + if ($user->hasRole(Profile_role::OWNER)) { + User::blow('user:site_owner'); + } } }