From 37765489719df17897a03133a77e2cb099ac8716 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 10 Jun 2014 01:24:37 -0700 Subject: [PATCH] web: allow badge disable --- html/inc/util.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/html/inc/util.inc b/html/inc/util.inc index 1920eca7dc..533edcb908 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -940,6 +940,7 @@ function redirect_to_secure_url($url) { } function show_badges($is_user, $item) { + if (DISABLE_BADGES) return; if ($is_user) { $bus = BoincBadgeUser::enum("user_id=$item->id"); } else {