After replying returns on the last message
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Fri, 11 Aug 2006 13:32:19 +0000 (13:32 +0000)
committerx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Fri, 11 Aug 2006 13:32:19 +0000 (13:32 +0000)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@137 9869982d-c50d-0410-be91-f2a2ec7c7c7b

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

index bbec034..a70aa46 100644 (file)
@@ -479,10 +479,7 @@ class Banana
         if ($this->nntp->post($msg)) {
             $dir = Array('group' => $group);
             if ($artid != -1) {
-                $ndx = $this->spool->getndx($artid);
-                if ($ndx > 50) {
-                    $dir['first'] = $ndx;
-                }
+                $dir['artid'] = $artid;
             }
             redirectInBanana($dir);
         } else {
index 3bc4f17..fe76cd9 100644 (file)
@@ -559,10 +559,12 @@ function wrap($text, $_prefix="", $_force=false, $firstpass = true)
     }
 
     $break = "\n";
+    $prefix = null;
     if (!$firstpass) {
         $break .= $_prefix;
+        $prefix = $_prefix;
     }
-    $result = $_prefix.join($break, $result).($_prefix ? '' : $sign);
+    $result = $prefix.join($break, $result).($prefix ? '' : $sign);
     if ($firstpass) {
         return wrap($result, $_prefix, $_force, false);
     }