From: Andrew Dolgov Date: Wed, 5 Jun 2013 06:27:53 +0000 (+0400) Subject: nsfw: fix wrong delimiter when expanding tag_cache X-Git-Tag: 1.8~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=838b374431a94812b20c35ae7cc6b953f946edda;p=tt-rss.git nsfw: fix wrong delimiter when expanding tag_cache --- diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php index 79979076..51566592 100644 --- a/plugins/nsfw/init.php +++ b/plugins/nsfw/init.php @@ -23,8 +23,8 @@ class NSFW extends Plugin { } function hook_render_article($article) { - $tags = array_map("trim", explode(", ", $this->host->get($this, "tags"))); - $a_tags = array_map("trim", explode(", ", $article["tag_cache"])); + $tags = array_map("trim", explode(",", $this->host->get($this, "tags"))); + $a_tags = array_map("trim", explode(",", $article["tag_cache"])); if (count(array_intersect($tags, $a_tags)) > 0) { $article["content"] = "
@@ -35,8 +35,8 @@ class NSFW extends Plugin { } function hook_render_article_cdm($article) { - $tags = array_map("trim", explode(", ", $this->host->get($this, "tags"))); - $a_tags = array_map("trim", explode(", ", $article["tag_cache"])); + $tags = array_map("trim", explode(",", $this->host->get($this, "tags"))); + $a_tags = array_map("trim", explode(",", $article["tag_cache"])); if (count(array_intersect($tags, $a_tags)) > 0) { $article["content"] = "