viewfeed: only include counters when in CDM mode

This commit is contained in:
Andrew Dolgov 2009-01-17 07:16:07 +01:00
parent 3b279892b7
commit 0bdec4560e

View file

@ -343,10 +343,16 @@
// if (get_pref($link, "SYNC_COUNTERS") || // if (get_pref($link, "SYNC_COUNTERS") ||
// time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) { // time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
// print "<counters>";
// getAllCounters($link, $omode, $feed);
// print "</counters>";
// }
if (get_pref($link, 'COMBINED_DISPLAY_MODE')) {
print "<counters>"; print "<counters>";
getAllCounters($link, $omode, $feed); getAllCounters($link, $omode, $feed);
print "</counters>"; print "</counters>";
// } }
if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info); if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);