From 4808aa431a751ef66dc3c457caef48a2de7d2029 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 15 Apr 2020 16:38:52 +0000 Subject: [PATCH] Use the own constants --- src/Model/Tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Tag.php b/src/Model/Tag.php index 2a09ffdd30..beda393b7e 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -68,12 +68,12 @@ class Tag } foreach ($tags as $tag) { - if ((substr($tag, 0, 1) != Term::TAG_CHARACTER[Term::HASHTAG]) || (strlen($tag) <= 1)) { + if ((substr($tag, 0, 1) != self::TAG_CHARACTER[self::HASHTAG]) || (strlen($tag) <= 1)) { Logger::info('Skip tag', ['uriid' => $uriid, 'tag' => $tag]); continue; } - $fields = ['uri-id' => $uriid, 'name' => substr($tag, 1, 64), 'type' => Term::HASHTAG]; + $fields = ['uri-id' => $uriid, 'name' => substr($tag, 1, 64), 'type' => self::HASHTAG]; DBA::insert('tag', $fields, true); Logger::info('Stored tag', ['uriid' => $uriid, 'tag' => $tag, 'fields' => $fields]); } -- 2.39.5