diff options
author | Andrew Dolgov <[email protected]> | 2021-02-15 15:52:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-15 15:52:28 +0300 |
commit | 257efb43c6e32226280d8198acc946a2fc4c454f (patch) | |
tree | 5226f18bb05b7015ac9a2a40d9a8d6e2d02c7e58 /classes/handler | |
parent | 020f062a76746a313fae9c82fbcf9b37fcc9d459 (diff) |
article: unify naming
Diffstat (limited to 'classes/handler')
-rwxr-xr-x | classes/handler/public.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 98386cbf1..b11c8ba04 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -82,7 +82,7 @@ class Handler_Public extends Handler { while ($line = $result->fetch()) { $line["content_preview"] = Sanitizer::sanitize(truncate_string(strip_tags($line["content"]), 100, '...')); - $line["tags"] = Article::get_article_tags($line["id"], $owner_uid); + $line["tags"] = Article::_get_tags($line["id"], $owner_uid); PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_QUERY_HEADLINES, function ($result) use (&$line) { @@ -131,7 +131,7 @@ class Handler_Public extends Handler { $tpl->addBlock('category'); } - $enclosures = Article::get_enclosures($line["id"]); + $enclosures = Article::_get_enclosures($line["id"]); if (count($enclosures) > 0) { foreach ($enclosures as $e) { @@ -151,7 +151,7 @@ class Handler_Public extends Handler { $tpl->setVariable('ARTICLE_ENCLOSURE_LENGTH', null, true); } - list ($og_image, $og_stream) = Article::get_article_image($enclosures, $line['content'], $feed_site_url); + list ($og_image, $og_stream) = Article::_get_image($enclosures, $line['content'], $feed_site_url); $tpl->setVariable('ARTICLE_OG_IMAGE', $og_image, true); @@ -184,7 +184,7 @@ class Handler_Public extends Handler { while ($line = $result->fetch()) { $line["content_preview"] = Sanitizer::sanitize(truncate_string(strip_tags($line["content_preview"]), 100, '...')); - $line["tags"] = Article::get_article_tags($line["id"], $owner_uid); + $line["tags"] = Article::_get_tags($line["id"], $owner_uid); PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_QUERY_HEADLINES, function ($result) use (&$line) { @@ -218,7 +218,7 @@ class Handler_Public extends Handler { } } - $enclosures = Article::get_enclosures($line["id"]); + $enclosures = Article::_get_enclosures($line["id"]); if (count($enclosures) > 0) { $article['enclosures'] = array(); @@ -341,7 +341,7 @@ class Handler_Public extends Handler { if ($line = $sth->fetch()) { - $line["tags"] = Article::get_article_tags($id, $owner_uid, $line["tag_cache"]); + $line["tags"] = Article::_get_tags($id, $owner_uid, $line["tag_cache"]); unset($line["tag_cache"]); $line["content"] = Sanitizer::sanitize($line["content"], @@ -390,8 +390,8 @@ class Handler_Public extends Handler { $rv .= "</head>"; - $enclosures = Article::get_enclosures($line["id"]); - list ($og_image, $og_stream) = Article::get_article_image($enclosures, $line['content'], $line["site_url"]); + $enclosures = Article::_get_enclosures($line["id"]); + list ($og_image, $og_stream) = Article::_get_image($enclosures, $line['content'], $line["site_url"]); if ($og_image) { $rv .= "<meta property='og:image' content=\"" . htmlspecialchars($og_image) . "\"/>"; @@ -573,7 +573,7 @@ class Handler_Public extends Handler { $content = strip_tags(clean($_REQUEST["content"])); $labels = strip_tags(clean($_REQUEST["labels"])); - Article::create_published_article($title, $url, $content, $labels, + Article::_create_published_article($title, $url, $content, $labels, $_SESSION["uid"]); print "<script type='text/javascript'>"; |