From 97d23be1f554f0c51091b96900f8064f2f7445dc Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 24 Feb 2007 09:34:26 +0000 Subject: [PATCH] Bugtracker #3794 - handle popular threads in other than English --- e107_plugins/forum/forum_viewforum.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index 4b785bb8e..ae100bb37 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_viewforum.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-01-20 16:24:25 $ -| $Author: mrpete $ +| $Revision: 1.3 $ +| $Date: 2007-02-24 09:34:09 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -326,11 +326,6 @@ function parse_thread($thread_info) } $LASTPOST .= "
".$lastpost_datestamp; } - else - { - $REPLIES = LAN_317; - $LASTPOST = " - "; - } $newflag = FALSE; if (USER) @@ -343,8 +338,9 @@ function parse_thread($thread_info) $THREADDATE = $gen->convert_date($thread_info['thread_datestamp'], 'forum'); $ICON = ($newflag ? IMAGE_new : IMAGE_nonew); - if ($REPLIES >= $pref['forum_popular'] && $REPLIES != "None") { - $ICON = ($newflag ? IMAGE_new_popular : IMAGE_nonew_popular); + if ($REPLIES >= $pref['forum_popular']) + { + $ICON = ($newflag ? IMAGE_new_popular : IMAGE_nonew_popular); } $THREADTYPE = ''; @@ -462,6 +458,12 @@ function parse_thread($thread_info) return(preg_replace("/\{(.*?)\}/e", '$\1', $FORUM_VIEW_FORUM_ANNOUNCE)); } + if (!$REPLIES) + { + $REPLIES = LAN_317; // 'None' + $LASTPOST = " - "; + } + return(preg_replace("/\{(.*?)\}/e", '$\1', $FORUM_VIEW_FORUM)); }