if ($this->nntp->post($msg)) {
$this->spool->delid($id);
$this->nntp->quit();
- redirect('group=' . $group . '&first=' . $id);
+ redirect(Array('group' => $group,
+ 'first' => $id));
} else {
return '<p class="error">'._b_('Impossible d\'annuler le message').'</p>';
}
$msg .= $this->custom.$this->profile['customhdr']."\n".$body;
if ($this->nntp->post($msg)) {
- redirect('group=' . $group . ($artid == -1 ? '' : '&first=' . $artid));
+ $dir = Array('group' => $group);
+ if ($artid != -1) {
+ $dir['first'] = $artid;
+ }
+ redirect($dir);
} else {
return "<p class=\"error\">"._b_('Impossible de poster le message')."</p>".$this->action_showThread($group, $artid);
}