Merge branch 'master' of ssh://git.nemunai.re:6224/fic2014-server
Conflicts: onyx/include/team/exercice.php onyx/tpl/bootstrap/teams/exercice.tpl
This commit is contained in:
commit
a0657ff619
4 changed files with 31 additions and 2 deletions
|
|
@ -189,11 +189,15 @@ class Team
|
|||
return $array;
|
||||
}
|
||||
|
||||
public static function get_top()
|
||||
public static function get_top($nb=0)
|
||||
{
|
||||
$teams = Team::get_teams();
|
||||
|
||||
usort($teams, "cmp_team_pts");
|
||||
|
||||
if ($nb != 0)
|
||||
$teams = array_slice($teams, 0, $nb);
|
||||
|
||||
return $teams;
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue