summaryrefslogtreecommitdiff
path: root/plugins/nsfw
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-05 10:27:53 +0400
committerAndrew Dolgov <[email protected]>2013-06-05 10:27:53 +0400
commit838b374431a94812b20c35ae7cc6b953f946edda (patch)
tree4933b8d433966cd990b052c4de468d6e211d9fdf /plugins/nsfw
parentbe9d5df19b073c29721a8d5a01fdf50f609c904c (diff)
nsfw: fix wrong delimiter when expanding tag_cache
Diffstat (limited to 'plugins/nsfw')
-rw-r--r--plugins/nsfw/init.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php
index 79979076b..515665923 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"] = "<div class='nswf wrapper'><button onclick=\"nsfwShow(this)\">".__("Not work safe (click to toggle)")."</button>
@@ -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"] = "<div class='nswf wrapper'><button onclick=\"nsfwShow(this)\">".__("Not work safe (click to toggle)")."</button>