diff options
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/article.php | 11 | ||||
-rwxr-xr-x | classes/pluginhost.php | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/classes/article.php b/classes/article.php index 974f9114f..983fcd193 100755 --- a/classes/article.php +++ b/classes/article.php @@ -100,7 +100,7 @@ class Article extends Handler_Protected { $pluginhost->load_all(PluginHost::KIND_ALL, $owner_uid); $pluginhost->load_data(); - $af_readability = $pluginhost->get_plugin("Af_Readability"); + /*$af_readability = $pluginhost->get_plugin("Af_Readability"); if ($af_readability) { $enable_share_anything = $pluginhost->get($af_readability, "enable_share_anything"); @@ -110,6 +110,15 @@ class Article extends Handler_Protected { if ($extracted_content) $content = $extracted_content; } + }*/ + + foreach ($pluginhost->get_hooks(PluginHost::HOOK_GET_FULL_TEXT) as $p) { + $extracted_content = $p->hook_get_full_text($url); + + if ($extracted_content) { + $content = $extracted_content; + break; + } } } diff --git a/classes/pluginhost.php b/classes/pluginhost.php index f0dc0286c..a3c12ecae 100755 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -58,6 +58,7 @@ class PluginHost { const HOOK_UNSUBSCRIBE_FEED = 38; const HOOK_SEND_MAIL = 39; const HOOK_FILTER_TRIGGERED = 40; + const HOOK_GET_FULL_TEXT = 41; const KIND_ALL = 1; const KIND_SYSTEM = 2; |