Change redirect function name because it conflicts with platal
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sun, 9 Jul 2006 07:44:35 +0000 (07:44 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:48 +0000 (00:34 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@65 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/banana.inc.php.in
banana/misc.inc.php

index 6d55cdd..eb08f9f 100644 (file)
@@ -294,7 +294,7 @@ class Banana
         if ($this->nntp->post($msg)) {
             $this->spool->delid($id);
             $this->nntp->quit();
-            redirect(Array('group' => $group,
+            redirectInBanana(Array('group' => $group,
                                                   'first' => $id));
         } else {
             return '<p class="error">'._b_('Impossible d\'annuler le message').'</p>';
@@ -430,7 +430,7 @@ class Banana
                        if ($artid != -1) {
                                $dir['first'] = $artid;
                        }
-            redirect($dir);
+            redirectInBanana($dir);
         } else {
             return "<p class=\"error\">"._b_('Impossible de poster le message')."</p>".$this->action_showThread($group, $artid);
         }
index ece2883..fb55a9f 100644 (file)
@@ -33,7 +33,7 @@ function textFormat_translate($format)
 /** Redirect to the page with the given parameter
  * @ref makeLink
  */
-function redirect($params)
+function redirectInBanana($params)
 {
        header('Location: ' . makeLink($params));
 }