mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 06:58:50 +00:00
CS
This commit is contained in:
parent
4da01f492b
commit
9bf83f1fb8
2 changed files with 5 additions and 6 deletions
|
@ -367,7 +367,7 @@ class WallabagRestController extends FOSRestController
|
||||||
public function deleteTagLabelAction(Request $request)
|
public function deleteTagLabelAction(Request $request)
|
||||||
{
|
{
|
||||||
$this->validateAuthentication();
|
$this->validateAuthentication();
|
||||||
$label = $request->query->get('tag','');
|
$label = $request->query->get('tag', '');
|
||||||
|
|
||||||
$tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label);
|
$tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label);
|
||||||
$this->getDoctrine()
|
$this->getDoctrine()
|
||||||
|
@ -412,7 +412,6 @@ class WallabagRestController extends FOSRestController
|
||||||
return $this->renderJsonResponse($json);
|
return $this->renderJsonResponse($json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve version number.
|
* Retrieve version number.
|
||||||
*
|
*
|
||||||
|
|
|
@ -223,13 +223,13 @@ class EntryRepository extends EntityRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove tags from all user entries
|
* Remove tags from all user entries.
|
||||||
*
|
*
|
||||||
* @param int $userId
|
* @param int $userId
|
||||||
* @param Array<Tag> $tags
|
* @param Array<Tag> $tags
|
||||||
*/
|
*/
|
||||||
|
public function removeTags($userId, $tags)
|
||||||
public function removeTags($userId, $tags) {
|
{
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
$this->removeTag($userId, $tag);
|
$this->removeTag($userId, $tag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue