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

Bugtracker #3794 - handle popular threads in other than English

This commit is contained in:
e107steved
2007-02-24 09:34:26 +00:00
parent fb535511ae
commit 97d23be1f5

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_viewforum.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_viewforum.php,v $
| $Revision: 1.2 $ | $Revision: 1.3 $
| $Date: 2007-01-20 16:24:25 $ | $Date: 2007-02-24 09:34:09 $
| $Author: mrpete $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -326,11 +326,6 @@ function parse_thread($thread_info)
} }
$LASTPOST .= "<br />".$lastpost_datestamp; $LASTPOST .= "<br />".$lastpost_datestamp;
} }
else
{
$REPLIES = LAN_317;
$LASTPOST = " - ";
}
$newflag = FALSE; $newflag = FALSE;
if (USER) if (USER)
@@ -343,8 +338,9 @@ function parse_thread($thread_info)
$THREADDATE = $gen->convert_date($thread_info['thread_datestamp'], 'forum'); $THREADDATE = $gen->convert_date($thread_info['thread_datestamp'], 'forum');
$ICON = ($newflag ? IMAGE_new : IMAGE_nonew); $ICON = ($newflag ? IMAGE_new : IMAGE_nonew);
if ($REPLIES >= $pref['forum_popular'] && $REPLIES != "None") { if ($REPLIES >= $pref['forum_popular'])
$ICON = ($newflag ? IMAGE_new_popular : IMAGE_nonew_popular); {
$ICON = ($newflag ? IMAGE_new_popular : IMAGE_nonew_popular);
} }
$THREADTYPE = ''; $THREADTYPE = '';
@@ -462,6 +458,12 @@ function parse_thread($thread_info)
return(preg_replace("/\{(.*?)\}/e", '$\1', $FORUM_VIEW_FORUM_ANNOUNCE)); return(preg_replace("/\{(.*?)\}/e", '$\1', $FORUM_VIEW_FORUM_ANNOUNCE));
} }
if (!$REPLIES)
{
$REPLIES = LAN_317; // 'None'
$LASTPOST = " - ";
}
return(preg_replace("/\{(.*?)\}/e", '$\1', $FORUM_VIEW_FORUM)); return(preg_replace("/\{(.*?)\}/e", '$\1', $FORUM_VIEW_FORUM));
} }