aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-06-23 22:14:01 +0200
committerMario Vavti <mario@mariovavti.com>2021-06-23 22:14:01 +0200
commit97d9764f015990b1df01463c45090c4cbc2192fa (patch)
tree8eb90981bec461325e3ca29f7fda8a56d14d5d52 /Zotlabs
parentdfcd8395d5aff83b8d6e1fa83346f0f0bd78f879 (diff)
downloadvolse-hubzilla-97d9764f015990b1df01463c45090c4cbc2192fa.tar.gz
volse-hubzilla-97d9764f015990b1df01463c45090c4cbc2192fa.tar.bz2
volse-hubzilla-97d9764f015990b1df01463c45090c4cbc2192fa.zip
if there are no messages display that there are no messages
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Widget/Messages.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php
index 95f3d4eb6..9679631c6 100644
--- a/Zotlabs/Widget/Messages.php
+++ b/Zotlabs/Widget/Messages.php
@@ -11,14 +11,10 @@ class Messages {
if (!local_channel())
return EMPTY_STR;
- $o = '';
$page = self::get_messages_page($options);
- if (!$page['entries'])
- return $o;
-
$tpl = get_markup_template('messages_widget.tpl');
- $o .= replace_macros($tpl, [
+ $o = replace_macros($tpl, [
'$entries' => $page['entries'],
'$offset' => $page['offset'],
'$feature_star' => feature_enabled(local_channel(), 'star_posts'),
@@ -26,7 +22,8 @@ class Messages {
'messages_title' => t('Public and restricted messages'),
'direct_messages_title' => t('Direct messages'),
'starred_messages_title' => t('Starred messages'),
- 'loading' => t('Loading')
+ 'loading' => t('Loading'),
+ 'empty' => t('No messages')
]
]);