diff options
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Service/TagService.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/lib/Service/TagService.php b/apps/files/lib/Service/TagService.php index a03261812b3..a477db324ac 100644 --- a/apps/files/lib/Service/TagService.php +++ b/apps/files/lib/Service/TagService.php @@ -24,7 +24,6 @@ namespace OCA\Files\Service; -use OC\Tags; use OCA\Files\Activity\FavoriteProvider; use OCP\Activity\IManager; use OCP\Files\Folder; @@ -92,14 +91,14 @@ class TagService { $newTags = array_diff($tags, $currentTags); foreach ($newTags as $tag) { - if ($tag === Tags::TAG_FAVORITE) { + if ($tag === ITags::TAG_FAVORITE) { $this->addActivity(true, $fileId, $path); } $this->tagger->tagAs($fileId, $tag); } $deletedTags = array_diff($currentTags, $tags); foreach ($deletedTags as $tag) { - if ($tag === Tags::TAG_FAVORITE) { + if ($tag === ITags::TAG_FAVORITE) { $this->addActivity(false, $fileId, $path); } $this->tagger->unTag($fileId, $tag); |