Mercurial > hg > rc1
diff plugins/advanced_search/advanced_search.php @ 42:db1e51c59ddc
various small fixes from upgrades to PHP and/or hangover from fix to apt-get overwrite at beginning of the year somehow
| author | Charlie Root |
|---|---|
| date | Sun, 26 Jan 2025 13:12:28 -0500 |
| parents | 50ac5484d514 |
| children | c822d3ec1f93 |
line wrap: on
line diff
--- a/plugins/advanced_search/advanced_search.php Fri Jan 24 14:20:15 2025 -0500 +++ b/plugins/advanced_search/advanced_search.php Sun Jan 26 13:12:28 2025 -0500 @@ -604,7 +604,7 @@ if (!empty($search)) { $mbox = rcube_utils::get_input_value('folder', rcube_utils::INPUT_GPC); - $imap_charset = RCMAIL_CHARSET; + $imap_charset = RCUBE_CHARSET; $sort_column = rcmail_sort_column(); $search_str = $this->get_search_query($search); $sub_folders = rcube_utils::get_input_value('sub_folders', rcube_utils::INPUT_GPC) == 'true'; @@ -962,7 +962,7 @@ $folder_count = array(); foreach ($folders_search as $mbox) { $this->rc->storage->set_folder($mbox); - $this->rc->storage->search($mbox, $search_string, RCMAIL_CHARSET, $_SESSION['sort_col']); + $this->rc->storage->search($mbox, $search_string, RCUBE_CHARSET, $_SESSION['sort_col']); $result = array(); $fcount = $this->rc->storage->count($mbox, 'ALL', !empty($_REQUEST['_refresh'])); $count += $fcount; @@ -1005,7 +1005,7 @@ $multiPage = "true"; } $this->rc->storage->set_folder($mailbox); - $this->rc->storage->search($mailbox, $search_string, RCMAIL_CHARSET, $_SESSION['sort_col']); + $this->rc->storage->search($mailbox, $search_string, RCUBE_CHARSET, $_SESSION['sort_col']); $messages = $this->rc->storage->list_messages('', $startPage); if ($multiPage) { $messages = array_merge($messages, $this->rc->storage->list_messages('', $startPage+1));
