summaryrefslogtreecommitdiff
path: root/classes/article.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-06 16:42:21 +0300
committerAndrew Dolgov <[email protected]>2018-12-06 16:42:21 +0300
commit369bac525bda0afdf80718d306f9047521ade953 (patch)
treec4673491c439fda2b002a6592f7df415ba0f4601 /classes/article.php
parent26c074ed7e4e2881e91a014fc40a8f2d0115a632 (diff)
simplify zoom mode display
Diffstat (limited to 'classes/article.php')
-rwxr-xr-xclasses/article.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/classes/article.php b/classes/article.php
index 4b18280d4..091caa735 100755
--- a/classes/article.php
+++ b/classes/article.php
@@ -771,7 +771,7 @@ class Article extends Handler_Protected {
/* originally from */
- if ($line["orig_feed_id"]) {
+ if (!$zoom_mode && $line["orig_feed_id"]) {
$of_sth = $pdo->prepare("SELECT * FROM ttrss_archived_feeds
WHERE id = ? AND owner_uid = ?");
@@ -813,14 +813,6 @@ class Article extends Handler_Protected {
}
- if ($zoom_mode) {
- $rv['content'] .= "
- <div class='footer'>
- <button onclick=\"return window.close()\">".
- __("Close this window")."</button></div>";
- $rv['content'] .= "</body></html>";
- }
-
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_FORMAT_ARTICLE) as $p) {
$rv['content'] = $p->hook_format_article($rv['content'], $line, $zoom_mode);
}