Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x

This commit is contained in:
Evan Prodromou
2009-11-08 17:06:41 -05:00
92 changed files with 13685 additions and 5182 deletions

View File

@@ -721,16 +721,18 @@ class User extends Memcached_DataObject
function delete()
{
$profile = $this->getProfile();
$profile->delete();
if ($profile) {
$profile->delete();
}
$related = array('Fave',
'User_openid',
'Confirm_address',
'Remember_me',
'Foreign_link',
'Invitation',
'Notice_inbox',
);
Event::handle('UserDeleteRelated', array($this, &$related));
foreach ($related as $cls) {
$inst = new $cls();