From 62f838a10447abb8373c087f7b746e625352bd3f Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 9 Apr 2013 12:23:00 +0200 Subject: Bugfix with PluginHost instance --- init.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'init.php') diff --git a/init.php b/init.php index 3507c07..da8e24e 100644 --- a/init.php +++ b/init.php @@ -46,10 +46,8 @@ class Af_Feedmod extends Plugin implements IHandler function hook_article_filter($article) { - global $pluginhost; - $json_conf = $pluginhost->get($this, 'json_conf'); + $json_conf = $this->host->get($this, 'json_conf'); $owner_uid = $article['owner_uid']; - $data = json_decode($json_conf, true); foreach ($data as $urlpart=>$config) { -- cgit v1.3.1