summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-05-01 08:12:47 +0300
committerAndrew Dolgov <[email protected]>2019-05-01 08:12:47 +0300
commitfda475bd930891cab422597ded679c1cc8ff7215 (patch)
tree9d1c3fe851f6a4aafd82a66d1ff1900b141433c9 /classes
parentccc0315ef0a115fb9111823b351bbcbdf3182f66 (diff)
af_readability: fix HOOK_GET_FULL_TEXT not being installed because plugin init() is called before load_data()
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/article.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/classes/article.php b/classes/article.php
index 983fcd193..c23a1b820 100755
--- a/classes/article.php
+++ b/classes/article.php
@@ -100,18 +100,6 @@ class Article extends Handler_Protected {
$pluginhost->load_all(PluginHost::KIND_ALL, $owner_uid);
$pluginhost->load_data();
- /*$af_readability = $pluginhost->get_plugin("Af_Readability");
-
- if ($af_readability) {
- $enable_share_anything = $pluginhost->get($af_readability, "enable_share_anything");
-
- if ($enable_share_anything) {
- $extracted_content = $af_readability->extract_content($url);
-
- 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);