Use $OUTPUT->set_env(...) instead of $OUTPUT->command('set_env', ...)

pull/5278/merge
Aleksander Machniak 9 years ago
parent 4108502082
commit 2b88e6cf95

@ -229,13 +229,13 @@ function rcmail_contact_search()
}
// update message count display
$OUTPUT->command('set_env', 'search_request', $search_request);
$OUTPUT->command('set_env', 'pagecount', ceil($result->count / $PAGE_SIZE));
$OUTPUT->set_env('search_request', $search_request);
$OUTPUT->set_env('pagecount', ceil($result->count / $PAGE_SIZE));
$OUTPUT->command('set_rowcount', rcmail_get_rowcount_text($result));
// Re-set current source
$OUTPUT->command('set_env', 'search_id', $sid);
$OUTPUT->command('set_env', 'source', '');
$OUTPUT->command('set_env', 'group', '');
$OUTPUT->set_env('search_id', $sid);
$OUTPUT->set_env('source', '');
$OUTPUT->set_env('group', '');
if (!$sid) {
// unselect currently selected directory/group

@ -102,8 +102,8 @@ if (!empty($result) && $result->count > 0) {
$OUTPUT->show_message('contactsearchsuccessful', 'confirmation', array('nr' => $result->count));
$OUTPUT->command('set_env', 'search_request', $search_request);
$OUTPUT->command('set_env', 'source', '');
$OUTPUT->set_env('search_request', $search_request);
$OUTPUT->set_env('source', '');
$OUTPUT->command('unselect_directory');
}
else if (!$group_count) {

Loading…
Cancel
Save