From 0458589e4e0691b0e5678c7a86e1c0e2bdef3ff3 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 23 Jul 2009 12:17:56 +0000 Subject: [PATCH] parametrization of number of players in the list --- web/briskin5/Obj/placing.phh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/briskin5/Obj/placing.phh b/web/briskin5/Obj/placing.phh index cd2a871..36d2950 100644 --- a/web/briskin5/Obj/placing.phh +++ b/web/briskin5/Obj/placing.phh @@ -24,7 +24,7 @@ * */ - +define(TOP_NUM, 10); define(TRI_LIMIT, (90 * 24 * 60 * 60)); define(TRI_FEW_GAMES, 60); @@ -130,12 +130,12 @@ function placing_show(&$user, $suff) if ($pg->username == "") continue; - if ($i < 5) { + if ($i < TOP_NUM) { $ret .= sprintf("%d%s%s%s%s(%d/%d)", $i+1, ($pg->username == $user->name ? "" : ""), $pg->username, ($pg->username == $user->name ? "" : ""), $pg->snormpts(), $pg->pts, $pg->gam); } if ($user != FALSE) { - if ($pg->username == $user->name && $i >= 5) { + if ($pg->username == $user->name && $i >= TOP_NUM) { $tail = sprintf(" . . . . . . . . . . "); $tail .= sprintf("%d%s%s%s%s(%d/%d)", $i+1, ($pg->username == $user->name ? "" : ""), $pg->username, ($pg->username == $user->name ? "" : ""), $pg->snormpts(), $pg->pts, $pg->gam); -- 2.17.1