Merge pull request #13646 from annando/page-drop

New user option to hide the page drop checkbox
This commit is contained in:
Hypolite Petovan
2023-11-16 07:42:43 -08:00
committed by GitHub
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();