I use latest Post local storage extension.
Any idea why $session_expiry_time is "0" only in PM (personal message) pages ?
In event/listener.phpIn \styles\all\template\event\posting_editor_options_prepend.html
Any idea why $session_expiry_time is "0" only in PM (personal message) pages ?
In event/listener.php
Code:
public function check_expiry_time($event){// error_log('[phpBB3 postlocalstorage] Dumping \$event in check_expiry_time()' + print_r($event, true));error_log('[phpBB3 postlocalstorage] checking for expiry time...');try{/** * Session length, as defined on the configuration parameters, in seconds. * If it doesn't exist, or throws an error, we'll set it to zero and that's it. * * @var int */$session_length = (int) $this->config['session_length'];}catch (Exception $e){error_log('[phpBB3 postlocalstorage] Something is wrong with session_length: ' . $e->getMessage());$session_length = 0;}$session_expiry_time = $this->time_now + $session_length;error_log('[phpBB3 postlocalstorage] check_expiry_time: $this->time_now is ' . $this->time_now. ' $session_length is ' . $session_length. '; Total is: ' . $session_expiry_time);$this->template->assign_vars(array('EXPIRY_TIME' => $session_expiry_time,));}
Code:
<div id="expiry-time" style="visibility: hidden; display: none;">{%- if EXPIRY_TIME -%}{{- EXPIRY_TIME -}}{%- else -%}0{%- endif -%}</div>
Statistics: Posted by gvp9000 — Thu Apr 25, 2024 4:56 am