From 49822736a69afbb9fdf46f55c55b2169adee6f6e Mon Sep 17 00:00:00 2001 From: Mikkel Hoegh Date: Mon, 11 Mar 2013 22:37:00 +0000 Subject: [PATCH] Fixed cover fetching by FAUST number. For some reason, we missed this bug caused by the changes in PR #48. One place using ting_get_additional_info() was upgraded to the new identifier/library-code syntax, but not the other. This PR fixes that, addressing LH#1938. --- modules/ting_covers/ting_covers.pages.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ting_covers/ting_covers.pages.inc b/modules/ting_covers/ting_covers.pages.inc index b552a57..55e7d59 100644 --- a/modules/ting_covers/ting_covers.pages.inc +++ b/modules/ting_covers/ting_covers.pages.inc @@ -78,7 +78,10 @@ function ting_covers_faust($preset, $faust_number) { $path = ting_covers_faust_path($faust_number); if (!ting_covers_cache_is_valid($path, $preset)) { - $info = ting_get_additional_info(array($faust_number)); + $info = ting_get_additional_info((object) array( + 'localIdentifier' => $faust_number, + 'libraryCode' => variable_get('addi_group', 0), + )); if (is_object($info[$faust_number])) { if ($info[$faust_number]->detailUrl) {