New user option to hide the page drop checkbox

This commit is contained in:
Michael 2023-11-15 21:55:54 +00:00
parent 27f3f62082
commit 581b96c32f
5 changed files with 265 additions and 251 deletions

View file

@ -567,7 +567,7 @@ class Conversation
$live_update_div = '<div id="live-search"></div>' . "\r\n";
}
$page_dropping = $this->session->getLocalUserId() && $this->session->getLocalUserId() == $uid && $mode != self::MODE_SEARCH;
$page_dropping = $this->session->getLocalUserId() && $this->pConfig->get($this->session->getLocalUserId(), 'system', 'show_page_drop', true) && ($this->session->getLocalUserId() == $uid && $mode != self::MODE_SEARCH);
if (!$update) {
$_SESSION['return_path'] = $this->args->getQueryString();