aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Messages.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-07-16 12:56:57 +0200
committerMario Vavti <mario@mariovavti.com>2021-07-16 12:56:57 +0200
commit7b2f4b08145ec31f0150544891633db2f5061104 (patch)
treeae4894e846a72e1aff6e4124e04503eee57b2d61 /Zotlabs/Widget/Messages.php
parent3051e2c268f9a85fd70b69c7a62084755b28f7af (diff)
downloadvolse-hubzilla-7b2f4b08145ec31f0150544891633db2f5061104.tar.gz
volse-hubzilla-7b2f4b08145ec31f0150544891633db2f5061104.tar.bz2
volse-hubzilla-7b2f4b08145ec31f0150544891633db2f5061104.zip
fix a regression in regard to unified session page load times intoduced in 6.0
Diffstat (limited to 'Zotlabs/Widget/Messages.php')
-rw-r--r--Zotlabs/Widget/Messages.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php
index 269d669dc..21375b08f 100644
--- a/Zotlabs/Widget/Messages.php
+++ b/Zotlabs/Widget/Messages.php
@@ -13,6 +13,8 @@ class Messages {
$page = self::get_messages_page($options);
+ $_SESSION['messages_loadtime'] = datetime_convert();
+
$tpl = get_markup_template('messages_widget.tpl');
$o = replace_macros($tpl, [
'$entries' => $page['entries'],
@@ -49,7 +51,7 @@ class Messages {
$offset = intval($options['offset']);
}
- $loadtime = (($offset) ? $_SESSION['page_loadtime'] : datetime_convert());
+ $loadtime = (($offset) ? $_SESSION['messages_loadtime'] : datetime_convert());
switch($options['type']) {
case 'direct':