typo
authorx99bachelart <x99bachelart>
Wed, 3 Sep 2003 17:16:23 +0000 (17:16 +0000)
committerx99bachelart <x99bachelart>
Wed, 3 Sep 2003 17:16:23 +0000 (17:16 +0000)
include/post.inc.php
include/wrapper.inc.php
install.d/format.inc.php

index 769b166..9c5ba65 100644 (file)
@@ -26,7 +26,7 @@ class Post {
       $this = false;
       return false;
     }
-    $this->body = join("\n",$nntp->body($_id));
+    $this->body = join("\n",$_nntp->body($_id));
       if ((isset($this->headers->contentencoding)) && 
       (preg_match("/base64/",$this->headers->contentencoding))) {
         $this->body = base64_decode($this->body);
index 502e116..029c21d 100644 (file)
@@ -122,7 +122,7 @@ function dowrap($_mixed,$_maxls=72,$_maxld=72,$_prefix="") {
 // adds prefix 
     $lines = split("\n",$preresult);
     foreach ($lines as $l) {
-      $result .= $prefix.(strlen($_prefix)>0?" ":"")."$l\n";
+      $result .= $_prefix.(strlen($_prefix)>0?" ":"")."$l\n";
     }
   //  $result = substr($result,0,-1);
   }
index 46e2ae1..9fb20f3 100644 (file)
@@ -72,7 +72,7 @@ function formatDisplayHeader($_header,$_text,$_spool) {
     case "newsgroups":
       $res = "";
       $groups = preg_split("/(\t| )*,(\t| )*/",$_text);
-      foreach ($_groups as $g) {
+      foreach ($groups as $g) {
         $res.='<a href="thread.php?group='.$g.'">'.$g.'</a>, ';
       }
       return substr($res,0, -2);
@@ -99,8 +99,8 @@ function formatDisplayHeader($_header,$_text,$_spool) {
       $rsl = "";
       $ndx = 1;
       $text=str_replace("><","> <",$_text);
-      $text=preg_split("/( |\t)/",strtr($_text,$_spool->ids));
-      $parents=preg_grep("/^\d+$/",$_text);
+      $text=preg_split("/( |\t)/",strtr($text,$_spool->ids));
+      $parents=preg_grep("/^\d+$/",$text);
       $p=array_pop($parents);
       while ($p) {
         $rsl .= "<a href=\"article.php?group={$_spool->group}"