From 4b41d05a13cc8d49871687b767640fbcd15eb05c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 17 Dec 2010 16:27:20 -0500 Subject: Make restoreuser use new FeedImporter queue handler --- scripts/restoreuser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/restoreuser.php') diff --git a/scripts/restoreuser.php b/scripts/restoreuser.php index eac7e5cf2..17f007b41 100644 --- a/scripts/restoreuser.php +++ b/scripts/restoreuser.php @@ -75,9 +75,8 @@ try { $user = null; } $xml = getActivityStreamDocument(); - $restorer = new AccountRestorer(); - $doc = $restorer->loadXML($xml); - $restorer->importActivityStream($user, $doc); + $qm = QueueManager::get(); + $qm->enqueue(array($user, $xml, true), 'feedimp'); } catch (Exception $e) { print $e->getMessage()."\n"; exit(1); -- cgit v1.2.3-54-g00ecf