projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change redirect function name because it conflicts with platal
[banana.git]
/
banana
/
banana.inc.php.in
diff --git
a/banana/banana.inc.php.in
b/banana/banana.inc.php.in
index
104d688
..
eb08f9f
100644
(file)
--- a/
banana/banana.inc.php.in
+++ b/
banana/banana.inc.php.in
@@
-294,7
+294,8
@@
class Banana
if ($this->nntp->post($msg)) {
$this->spool->delid($id);
$this->nntp->quit();
if ($this->nntp->post($msg)) {
$this->spool->delid($id);
$this->nntp->quit();
- redirect('group=' . $group . '&first=' . $id);
+ redirectInBanana(Array('group' => $group,
+ 'first' => $id));
} else {
return '<p class="error">'._b_('Impossible d\'annuler le message').'</p>';
}
} else {
return '<p class="error">'._b_('Impossible d\'annuler le message').'</p>';
}
@@
-425,7
+426,11
@@
class Banana
$msg .= $this->custom.$this->profile['customhdr']."\n".$body;
if ($this->nntp->post($msg)) {
$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;
+ }
+ redirectInBanana($dir);
} else {
return "<p class=\"error\">"._b_('Impossible de poster le message')."</p>".$this->action_showThread($group, $artid);
}
} else {
return "<p class=\"error\">"._b_('Impossible de poster le message')."</p>".$this->action_showThread($group, $artid);
}