aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-09-03 20:25:15 +0200
committerGitHub <noreply@github.com>2017-09-03 20:25:15 +0200
commit3af5d41759c13420faa6f426491f1e95e5754908 (patch)
tree7ae4ccdc515838cbb5a879e4308a3a742a4de1cf /src
parent9c4d1eb56a6bdd3cdeb5bed3d58be18395a5134b (diff)
parent7b4f66881d694c948aca9372da6362b8873de6bb (diff)
downloadwallabag-3af5d41759c13420faa6f426491f1e95e5754908.tar.gz
wallabag-3af5d41759c13420faa6f426491f1e95e5754908.tar.zst
wallabag-3af5d41759c13420faa6f426491f1e95e5754908.zip
Merge pull request #3139 from Kdecherf/2502-tag-case
Ignore tag's case
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Tag.php2
-rw-r--r--src/Wallabag/CoreBundle/Helper/TagsAssigner.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php
index c19023af..a6dc8c50 100644
--- a/src/Wallabag/CoreBundle/Entity/Tag.php
+++ b/src/Wallabag/CoreBundle/Entity/Tag.php
@@ -78,7 +78,7 @@ class Tag
78 */ 78 */
79 public function setLabel($label) 79 public function setLabel($label)
80 { 80 {
81 $this->label = $label; 81 $this->label = mb_convert_case($label, MB_CASE_LOWER);
82 82
83 return $this; 83 return $this;
84 } 84 }
diff --git a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php
index a2fb0b9a..0bfe5c57 100644
--- a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php
+++ b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php
@@ -45,7 +45,7 @@ class TagsAssigner
45 } 45 }
46 46
47 foreach ($tags as $label) { 47 foreach ($tags as $label) {
48 $label = trim($label); 48 $label = trim(mb_convert_case($label, MB_CASE_LOWER));
49 49
50 // avoid empty tag 50 // avoid empty tag
51 if (0 === strlen($label)) { 51 if (0 === strlen($label)) {