Add tags without AS alias.

This commit is contained in:
Ivailo Karamanolev 2014-09-18 18:03:34 -04:00
parent a5ebb19157
commit 8c71e1fb9a
2 changed files with 8 additions and 2 deletions

View File

@ -62,6 +62,8 @@
$JsonMusicInfo = null;
}
$TagList = explode('|', $TorrentDetails['GROUP_CONCAT(DISTINCT tags.Name SEPARATOR \'|\')']);
$JsonTorrentDetails = array(
'wikiBody' => Text::full_format($TorrentDetails['WikiBody']),
'wikiImage' => $TorrentDetails['WikiImage'],
@ -76,7 +78,8 @@
'time' => $TorrentDetails['Time'],
'vanityHouse' => $TorrentDetails['VanityHouse'] == 1,
'isBookmarked' => Bookmarks::has_bookmarked('torrent', $GroupID),
'musicInfo' => $JsonMusicInfo
'musicInfo' => $JsonMusicInfo,
'tags' => $TagList
);
$Torrent = $TorrentList[$TorrentID];

View File

@ -56,6 +56,8 @@
$JsonMusicInfo = null;
}
$TagList = explode('|', $TorrentDetails['GROUP_CONCAT(DISTINCT tags.Name SEPARATOR \'|\')']);
$JsonTorrentDetails = array(
'wikiBody' => Text::full_format($TorrentDetails['WikiBody']),
'wikiImage' => $TorrentDetails['WikiImage'],
@ -70,7 +72,8 @@
'time' => $TorrentDetails['Time'],
'vanityHouse' => ($TorrentDetails['VanityHouse'] == 1),
'isBookmarked' => Bookmarks::has_bookmarked('torrent', $GroupID),
'musicInfo' => $JsonMusicInfo
'musicInfo' => $JsonMusicInfo,
'tags' => $TagList
);
$JsonTorrentList = array();