buildDeveloperProducts($developer['products'], $developer['info'])
);
writeJson(
- //index.htm does not need a rewrite rule
'api/v1/developers/' . $developer['info']->uuid
. '/current_gamer',
buildDeveloperCurrentGamer()
);
addDiscoverRow(
$data, 'Best rated',
- filterBestRated($games, 10)
+ filterBestRated($games, 10),
+ true
);
foreach ($GLOBALS['packagelists'] as $listTitle => $listPackageNames) {
);
addDiscoverRow(
$data, 'Best rated',
- filterBestRated($games, 10)
+ filterBestRated($games, 10),
+ true
);
$games = sortByTitle($games);
}
}
-function addDiscoverRow(&$data, $title, $games)
+function addDiscoverRow(&$data, $title, $games, $ranked = false)
{
$row = [
'title' => $title,
'showPrice' => true,
- 'ranked' => false,
+ 'ranked' => $ranked,
'tiles' => [],
];
foreach ($games as $game) {