Skip to content

Commit

Permalink
Remove redundant json-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pabzm committed Jul 9, 2024
1 parent fb5cd16 commit a2b0156
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion program/actions/mail/compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ public static function write_forward_attachments()
'name' => 'msgsizeerrorfwd',
'vars' => ['num' => $size_errors, 'size' => $limit],
]);
$rcmail->output->command('display_message', rcube::JQ($error), 'error');
$rcmail->output->command('display_message', $error, 'error');
}
}

Expand Down
2 changes: 1 addition & 1 deletion program/actions/settings/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public static function user_prefs($current = null)

if ($current) {
$product_name = $rcmail->config->get('product_name', 'Roundcube Webmail');
$rcmail->output->command('check_protocol_handler', rcube::JQ($product_name), '#mailtoprotohandler');
$rcmail->output->command('check_protocol_handler', $product_name, '#mailtoprotohandler');
}

$blocks['browser']['options']['mailtoprotohandler'] = [
Expand Down
2 changes: 1 addition & 1 deletion program/include/rcmail_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public static function quota_display($attrib)
$quota = self::quota_content($attrib);

$rcmail->output->add_gui_object('quotadisplay', $attrib['id']);
$rcmail->output->command('set_quota', rcube_output::json_serialize($quota));
$rcmail->output->command('set_quota', $quota);

return html::span($attrib, ' ');
}
Expand Down

0 comments on commit a2b0156

Please sign in to comment.