diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 48d9c2e37..d1b165809 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -29,6 +29,10 @@ class Af_Readability extends Plugin { { $this->host = $host; + if (version_compare(PHP_VERSION, '5.6.0', '<')) { + return; + } + $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_PREFS_TAB, $this); $host->add_hook($host::HOOK_PREFS_EDIT_FEED, $this); @@ -42,6 +46,10 @@ class Af_Readability extends Plugin { print "