aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-12-06 00:24:30 +0000
committerMario <mario@mariovavti.com>2018-12-14 11:29:06 +0100
commit30403da3262ef38db302cf2519cfb60b6986f4be (patch)
tree732a8ab5b895fb7a6fabf7d406b66c1ad3e65de8
parent6b68a76bbe2869c505e4c12d2b25ceb59d3ab813 (diff)
downloadvolse-hubzilla-30403da3262ef38db302cf2519cfb60b6986f4be.tar.gz
volse-hubzilla-30403da3262ef38db302cf2519cfb60b6986f4be.tar.bz2
volse-hubzilla-30403da3262ef38db302cf2519cfb60b6986f4be.zip
reset page title if article has no title.
(cherry picked from commit 8ab1f3105874b3167515de9a41c3bf3f3fe5a9d8)
-rw-r--r--Zotlabs/Module/Display.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index d1755c183..e3691702d 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -375,8 +375,7 @@ class Display extends \Zotlabs\Web\Controller {
}
$o .= '</noscript>';
- if ($items[0]['title'])
- \App::$page['title'] = $items[0]['title'] . " - " . \App::$page['title'];
+ \App::$page['title'] = (($items[0]['title']) ? $items[0]['title'] . " - " . \App::$page['title'] : \App::$page['title']);
$o .= conversation($items, 'display', $update, 'client');
}