'token' => $config->getRssToken(),
],
'twofactor_auth' => $this->getParameter('twofactor_auth'),
+ 'wallabag_url' => $this->get('craue_config')->get('wallabag_url'),
'enabled_users' => $this->getDoctrine()
->getRepository('WallabagUserBundle:User')
->getSumEnabledUsers(),
$this->getDoctrine()->getRepository('WallabagAnnotationBundle:Annotation')->removeAllByUserId($this->getUser()->getId());
}
- // manually remove tags first to avoid orphan tag
+ // manually remove tags to avoid orphan tag
$this->removeAllTagsByUserId($this->getUser()->getId());
$this->getDoctrine()
}
/**
- * Remove all tags for a given user and cleanup orphan tags
+ * Remove all tags for a given user and cleanup orphan tags.
*
- * @param int $userId
+ * @param int $userId
*/
private function removeAllTagsByUserId($userId)
{
->getRepository('WallabagCoreBundle:Entry')
->removeTags($userId, $tags);
+ // cleanup orphan tags
$em = $this->getDoctrine()->getManager();
foreach ($tags as $tag) {