diff options
author | Brion Vibber <brion@pobox.com> | 2009-11-08 14:33:22 +0100 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-11-08 14:40:30 +0100 |
commit | 8d44b6a5a2965b37002efd26f23a7cfeb5109391 (patch) | |
tree | 532f5864ce3be5e3c0f2b31a13db31150fccf204 /plugins | |
parent | 5c428f8adf5d4686988f371e3de204ac6e70b99a (diff) |
Fix bug 1962: deleteuser.php regression when OpenID plugin not enabled
The User_openid data object was explicitly listed as a related field to delete from in User::delete(); this class doesn't exist anymore by default since OpenID was broken out to a plugin.
Added UserDeleteRelated event for plugins to add related tables to delete from at user delete time.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 2309eea9d..e4aed2ddb 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -298,4 +298,10 @@ class OpenIDPlugin extends Plugin new ColumnDef('modified', 'timestamp'))); return true; } + + function onUserDeleteRelated($user, &$tables) + { + $tables[] = 'User_openid'; + return true; + } } |