Skip to content
Snippets Groups Projects
Commit 518e677a authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

nsfw: fix wrong return parameter count in hook article image

parent 266c8a6e
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class NSFW extends Plugin { ...@@ -29,7 +29,7 @@ class NSFW extends Plugin {
$article_tags = $article["tags"]; $article_tags = $article["tags"];
if (count(array_intersect($tags, $article_tags)) > 0) { if (count(array_intersect($tags, $article_tags)) > 0) {
return [Config::get_self_url() . "/plugins/nsfw/nsfw.png", "", "nsfw", []]; return [Config::get_self_url() . "/plugins/nsfw/nsfw.png", "", "nsfw"];
} else { } else {
return ["", "", $content]; return ["", "", $content];
} }
...@@ -116,5 +116,5 @@ class NSFW extends Plugin { ...@@ -116,5 +116,5 @@ class NSFW extends Plugin {
function api_version() { function api_version() {
return 2; return 2;
} }
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment