From 06a8c8e6cf06a32dd9225f7e2841e69ab8c8588e Mon Sep 17 00:00:00 2001 From: Ivailo Karamanolev Date: Thu, 18 Sep 2014 21:53:24 -0400 Subject: [PATCH] Fix ajax.php top10 bug and add two missing fields. --- sections/ajax/top10/torrents.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sections/ajax/top10/torrents.php b/sections/ajax/top10/torrents.php index 1869e450..2c4625d9 100644 --- a/sections/ajax/top10/torrents.php +++ b/sections/ajax/top10/torrents.php @@ -173,7 +173,7 @@ function generate_torrent_json($Caption, $Tag, $Details, $Limit) { 'groupId' => (int)$GroupID, 'artist' => $TruncArtist, 'groupName' => $GroupName, - 'groupCategory' => (int)$GroupCategory, + 'groupCategory' => (int)$GroupCategoryID, 'groupYear' => (int)$GroupYear, 'remasterTitle' => $RemasterTitle, 'format' => $Format, @@ -189,6 +189,8 @@ function generate_torrent_json($Caption, $Tag, $Details, $Limit) { 'leechers' => (int)$Leechers, 'data' => (int)$Data, 'size' => (int)$Size, + 'wikiImage' => $WikiImage, + 'releaseType' => $ReleaseType, ); }