rename Post into NNTPPost to avoid plat/al class name clash
authorx2000habouzit <x2000habouzit>
Wed, 15 Dec 2004 19:31:31 +0000 (19:31 +0000)
committerx2000habouzit <x2000habouzit>
Wed, 15 Dec 2004 19:31:31 +0000 (19:31 +0000)
article.php
include/post.inc.php
post.php
thread.php

index de4f084..06b21f2 100644 (file)
@@ -41,7 +41,7 @@ $spool = new spool($nntp,$group,$profile['display'],$profile['lastnews']);
 if (!$spool) error("nntpspool");
 $nntp->group($group);
 
-$post = new post($nntp,$id);
+$post = new NNNTPost($nntp,$id);
 if (!$post) {
   if ($nntp->lasterrorcode == "423") {
     $spool->delid($id);
index b232f73..9397b86 100644 (file)
@@ -10,7 +10,7 @@
 /** class for posts
  */
 
-class Post {
+class NNTPPost {
   /** headers */
   var $headers;
   /** body */
index f0e4397..81450d8 100644 (file)
--- a/post.php
+++ b/post.php
@@ -44,7 +44,7 @@ if ($news['user']!="anonymous") {
 if (isset($group) && isset($id) && isset($_REQUEST['type']) && 
   ($_REQUEST['type']=='followup')) {
   $rq=$nntp->group($group);
-  $post = new post($nntp,$id);
+  $post = new NNTPPost($nntp,$id);
   if ($post) {
     $subject = (preg_match("/^re:/i",$post->headers->subject)?"":"Re: ")
       .$post->headers->subject;
index 680bcbf..f37f60d 100644 (file)
@@ -58,7 +58,7 @@ if (isset($_REQUEST['action']) && (isset($_REQUEST['type'])) &&
     case 'cancel':
       $mid = array_search($id,$spool->ids);
       $nntp->group($group);
-      $post = new post($nntp,$id);
+      $post = new NNTPPost($nntp,$id);
       
       if (checkcancel($post->headers)) {
         $message = 'From: '.$profile['name']."\n"
@@ -103,7 +103,7 @@ if (isset($_REQUEST['action']) && (isset($_REQUEST['type'])) &&
       break;
     case 'followupok':
       $rq=$nntp->group($group);
-      $post = new post($nntp,$id);
+      $post = new NNTPPost($nntp,$id);
       if ($post) {
         $refs = (isset($post->headers->references)?
                 $post->headers->references." ":"").$post->headers->msgid;