summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-04 14:38:45 +0300
committerAndrew Dolgov <[email protected]>2017-05-04 14:38:45 +0300
commit7e5f8d9fb323dc5e47f545984c6f9b3d320a2912 (patch)
treee5b38d83ab67fa9a0dfa5ac3bb972a26ba91de65 /classes/handler
parent4122da0290d7bdb85e94b3e4b509be3ee56c6356 (diff)
move the following to Article:
+ static function format_article_enclosures($id, $always_display_enclosures, + static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) { + static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) { + static function format_tags_string($tags) { + static function format_article_labels($labels) { + static function format_article_note($id, $note, $allow_edit = true) { + static function get_article_enclosures($id) {
Diffstat (limited to 'classes/handler')
-rw-r--r--classes/handler/public.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index a6bc3ff6f..183a7d3ba 100644
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -166,14 +166,14 @@ class Handler_Public extends Handler {
$tpl->setVariable('ARTICLE_SOURCE_LINK', htmlspecialchars($line['site_url'] ? $line["site_url"] : get_self_url_prefix()), true);
$tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title'] ? $line['feed_title'] : $feed_title), true);
- $tags = get_article_tags($line["id"], $owner_uid);
+ $tags = Article::get_article_tags($line["id"], $owner_uid);
foreach ($tags as $tag) {
$tpl->setVariable('ARTICLE_CATEGORY', htmlspecialchars($tag), true);
$tpl->addBlock('category');
}
- $enclosures = get_article_enclosures($line["id"]);
+ $enclosures = Article::get_article_enclosures($line["id"]);
foreach ($enclosures as $e) {
$type = htmlspecialchars($e['content_type']);
@@ -252,7 +252,7 @@ class Handler_Public extends Handler {
}
}
- $enclosures = get_article_enclosures($line["id"]);
+ $enclosures = Article::get_article_enclosures($line["id"]);
if (count($enclosures) > 0) {
$article['enclosures'] = array();
@@ -402,7 +402,7 @@ class Handler_Public extends Handler {
$id = $this->dbh->fetch_result($result, 0, "ref_id");
$owner_uid = $this->dbh->fetch_result($result, 0, "owner_uid");
- $article = format_article($id, false, true, $owner_uid);
+ $article = Article::format_article($id, false, true, $owner_uid);
print_r($article['content']);