From 49dc45a90bcaf16863c4325c7c6471ae99c43929 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 19 Aug 2018 15:03:36 +0200 Subject: [PATCH] removed invalid fields --- bl-kernel/tag.class.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/bl-kernel/tag.class.php b/bl-kernel/tag.class.php index 438818dd..542dfc3f 100644 --- a/bl-kernel/tag.class.php +++ b/bl-kernel/tag.class.php @@ -9,13 +9,11 @@ class Tag { global $tags; if (isset($tags->db[$key])) { $this->vars['name'] = $tags->db[$key]['name']; - $this->vars['template'] = $tags->db[$key]['template']; - $this->vars['description'] = $tags->db[$key]['description']; $this->vars['key'] = $key; $this->vars['permalink'] = DOMAIN_TAGS . $key; $this->vars['list'] = $tags->db[$key]['list']; } else { - $errorMessage = 'Category not found in database by key ['.$key.']'; + $errorMessage = 'Tag not found in database by key ['.$key.']'; Log::set(__METHOD__.LOG_SEP.$errorMessage); throw new Exception($errorMessage); } @@ -44,16 +42,6 @@ class Tag { return $this->getValue('permalink'); } - public function template() - { - return $this->getValue('template'); - } - - public function description() - { - return $this->getValue('description'); - } - // Returns an array with the keys of pages linked to the tag public function pages() {