From 4ee663c543dbaba4b6dac36e4e5d01c1e3695789 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 15 Dec 2004 19:31:31 +0000 Subject: [PATCH] rename Post into NNTPPost to avoid plat/al class name clash --- article.php | 2 +- include/post.inc.php | 2 +- post.php | 2 +- thread.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/article.php b/article.php index de4f084..06b21f2 100644 --- a/article.php +++ b/article.php @@ -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); diff --git a/include/post.inc.php b/include/post.inc.php index b232f73..9397b86 100644 --- a/include/post.inc.php +++ b/include/post.inc.php @@ -10,7 +10,7 @@ /** class for posts */ -class Post { +class NNTPPost { /** headers */ var $headers; /** body */ diff --git a/post.php b/post.php index f0e4397..81450d8 100644 --- 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; diff --git a/thread.php b/thread.php index 680bcbf..f37f60d 100644 --- a/thread.php +++ b/thread.php @@ -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; -- 2.1.4