[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-developers] Bugfixes for Forum app
From: |
Eugene Sandulenko |
Subject: |
[Phpgroupware-developers] Bugfixes for Forum app |
Date: |
Tue, 8 Jan 2002 06:25:13 +0200 |
Hi,
There were couple of bugs.
One prevented to post new threads.
Another one lead to bad links from the thread view.
Following patch fixes both bugs. And also I am going to play a little
with this app to make possible to view whole thread of messages.
Eugene
diff -aburN --exclude=CVS* forum.old/post.php forum/post.php
--- forum.old/post.php Sun Nov 18 10:27:49 2001
+++ forum/post.php Tue Jan 8 06:00:41 2002
@@ -17,7 +17,6 @@
'enable_nextmatchs_class' => True
);
- $action = $GLOBALS['HTTP_POST_VARS']['post'] ?
$GLOBALS['HTTP_POST_VARS']['post'] : $GLOBALS['HTTP_GET_VARS']['post'];
if ($action)
{
$GLOBALS['phpgw_info']['flags']['noheader'] = True;
diff -aburN --exclude=CVS* forum.old/threads.php forum/threads.php
--- forum.old/threads.php Sun Nov 18 10:16:25 2001
+++ forum/threads.php Tue Jan 8 05:58:04 2002
@@ -66,7 +66,7 @@
'TOPIC' => $subject,
'AUTHOR' =>
($GLOBALS['phpgw']->db->f('thread_owner')?$GLOBALS['phpgw']->accounts->id2name($GLOBALS['phpgw']->db->f('thread_owner')):lang('Unknown')),
'REPLIES' =>
$GLOBALS['phpgw']->db->f("n_replies") ,
- 'READ_LINK' =>
$GLOBALS['phpgw']->link('/forum/read.php','msg=$msg' .
$GLOBALS['phpgw']->db->f('id')),
+ 'READ_LINK' =>
$GLOBALS['phpgw']->link('/forum/read.php','msg=' .
$GLOBALS['phpgw']->db->f('id')),
'LATESTREPLY' =>
$GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($GLOBALS['phpgw']->db->f('postdate')))
));
- [Phpgroupware-developers] Bugfixes for Forum app,
Eugene Sandulenko <=