diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-07 09:10:28 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-07 09:10:28 +0000 |
commit | 6f95a6af5389b3f3a3affd309ac73f689dee21b8 (patch) | |
tree | 533fd99a0c4bcf164bb664ff6c986bdd03dd9743 /admin.php | |
parent | db6172250228292146706690e2955074626a6ccd (diff) | |
download | semanticscuttle-6f95a6af5389b3f3a3affd309ac73f689dee21b8.tar.gz semanticscuttle-6f95a6af5389b3f3a3affd309ac73f689dee21b8.tar.bz2 |
Bug Fix: delete really all user's data when removing a user
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@221 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -23,7 +23,10 @@ require_once('header.inc.php'); $bookmark2tagservice = & ServiceFactory :: getServiceInstance('Bookmark2Tagservice');
$bookmarkservice = & ServiceFactory :: getServiceInstance('BookmarkService'); $tag2tagservice = & ServiceFactory :: getServiceInstance('Tag2TagService'); -$tagcacheservice = & ServiceFactory :: getServiceInstance('TagCacheService');
+$tagcacheservice = & ServiceFactory :: getServiceInstance('TagCacheService'); +$commondescriptionservice = & ServiceFactory :: getServiceInstance('CommonDescriptionService'); +$searchhistoryservice = & ServiceFactory :: getServiceInstance('SearchHistoryService'); +$tagstatservice = & ServiceFactory :: getServiceInstance('TagStatService');
// Header variables
$tplVars['subtitle'] = T_('Manage users');
@@ -56,7 +59,10 @@ if ( $action $tagcacheservice->deleteByUser($uId); $tag2tagservice->removeLinkedTags('','','',$uId);
$userservice->deleteUser($uId);
- $bookmark2tagservice->deleteTagsForUser($uId);
+ $bookmark2tagservice->deleteTagsForUser($uId); + $commondescriptionservice->deleteDescriptionsForUser($uId); + $searchhistoryservice->deleteSearchHistoryForUser($uId); + $tagstatservice->deleteTagStatForUser($uId);
// XXX: don't delete bookmarks before tags, else tags can't be deleted !!!
$bookmarkservice->deleteBookmarksForUser($uId);
|