1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 04:40:44 +02:00

catchup of latest code changes

This commit is contained in:
mcfly
2008-11-30 22:05:12 +00:00
parent 9a4bb0e1b9
commit 0ed0056af7

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_class.php,v $
| $Revision: 1.11 $ | $Revision: 1.12 $
| $Date: 2008-11-29 01:24:27 $ | $Date: 2008-11-30 22:05:12 $
| $Author: mcfly_e107 $ | $Author: mcfly_e107 $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -41,6 +41,8 @@ class e107forum
$this->fieldTypes['forum_thread']['thread_views'] = 'int'; $this->fieldTypes['forum_thread']['thread_views'] = 'int';
$this->fieldTypes['forum_thread']['thread_replies'] = 'int'; $this->fieldTypes['forum_thread']['thread_replies'] = 'int';
$this->fieldTypes['forum']['forum_lastpost_user'] = 'int';
// print_a($this->permList); // print_a($this->permList);
} }
@@ -127,9 +129,9 @@ class e107forum
if(varset($postInfo['post_user'])) if(varset($postInfo['post_user']))
{ {
$threadInfo['thread_lastuser'] = $postInfo['post_user']; $threadInfo['thread_lastuser'] = $postInfo['post_user'];
$threadInfo['thread_lastuser_anon'] = ''; $threadInfo['thread_lastuser_anon'] = '_NULL_';
$forumInfo['forum_lastpost_user'] = $postInfo['post_user']; $forumInfo['forum_lastpost_user'] = $postInfo['post_user'];
$forumInfo['forum_lastpost_user_anon'] = ''; $forumInfo['forum_lastpost_user_anon'] = '_NULL_';
} }
else else
{ {
@@ -174,7 +176,6 @@ class e107forum
} }
$forumInfo['forum_lastpost_info'] = $postInfo['post_datestamp'].'.'.$postInfo['post_thread']; $forumInfo['forum_lastpost_info'] = $postInfo['post_datestamp'].'.'.$postInfo['post_thread'];
$forumInfo['WHERE'] = 'forum_id = '.$postInfo['post_forum']; $forumInfo['WHERE'] = 'forum_id = '.$postInfo['post_forum'];
// print_a($forumInfo);
$result = $e107->sql->db_Update('forum', $forumInfo, true); $result = $e107->sql->db_Update('forum', $forumInfo, true);
} }
} }