]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
clear the site owner when profile changes
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 16:03:56 +0000 (11:03 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 16:03:56 +0000 (11:03 -0500)
actions/profilesettings.php

index 0d6777879193af2e9d66e662a3737ebd396fc062..161e35b111f450ed7ce14ef5d3e94f79bac9e0f3 100644 (file)
@@ -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');
+                    }
                 }
             }