From 5f6f1fe8a60d3c84d150fa4f54de1385a3ad60bd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 12 Jun 2009 04:36:18 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=18391 --- html/inc/forum.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 3a20c33330..99c660dc82 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -452,6 +452,8 @@ function is_ignoring($user, $other_user) { function show_post( $post, $thread, $forum, $logged_in_user, $last_visit, $n, $controls=FORUM_CONTROLS, $filter=true ) { + global $country_to_iso3166_2; + $user = BoincUser::lookup_id($post->user); BoincForumPrefs::lookup($user); if (is_banished($user) && !is_moderator($logged_in_user, $forum)) { @@ -566,10 +568,10 @@ function show_post( // - put the .png's in html/user/flags/ // - put define(COUNTRY_FLAGS, 1) in your html/project/project.inc // - if (defined(COUNTRY_FLAGS)) { + if (defined("COUNTRY_FLAGS")) { if (array_key_exists($user->country, $country_to_iso3166_2)) { $code = $country_to_iso3166_2[$user->country]; - echo "Country:
\n"; + echo "
\n"; } } }