mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
commit
3af5d41759
6 changed files with 111 additions and 6 deletions
|
@ -78,7 +78,7 @@ class Tag
|
|||
*/
|
||||
public function setLabel($label)
|
||||
{
|
||||
$this->label = $label;
|
||||
$this->label = mb_convert_case($label, MB_CASE_LOWER);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ class TagsAssigner
|
|||
}
|
||||
|
||||
foreach ($tags as $label) {
|
||||
$label = trim($label);
|
||||
$label = trim(mb_convert_case($label, MB_CASE_LOWER));
|
||||
|
||||
// avoid empty tag
|
||||
if (0 === strlen($label)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue