From ad9518a404209dd25a5bd062ef92b9b874c0ca33 Mon Sep 17 00:00:00 2001 From: Jonas Haraldsson Date: Mon, 20 Feb 2012 09:50:12 +0100 Subject: [PATCH] Change user-profile to use new tagcloud function --- nixtape/themes/gnufm/templates/user-profile.tpl | 2 +- nixtape/user-profile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixtape/themes/gnufm/templates/user-profile.tpl b/nixtape/themes/gnufm/templates/user-profile.tpl index e8fa2d40..06d419ae 100644 --- a/nixtape/themes/gnufm/templates/user-profile.tpl +++ b/nixtape/themes/gnufm/templates/user-profile.tpl @@ -32,7 +32,7 @@

{t name=$me->name}Free artists that %1 loves{/t}

{/if} diff --git a/nixtape/user-profile.php b/nixtape/user-profile.php index b79548a2..2a4fc2ca 100644 --- a/nixtape/user-profile.php +++ b/nixtape/user-profile.php @@ -53,7 +53,7 @@ if (isset($user->name)) { if ($user->hasLoved()) { $recommendedArtists = $user->getRecommended(10); $smarty->assign('recommendedArtists', $recommendedArtists); - $lovedArtists = $user->getLovedArtists(10); + $lovedArtists = TagCloud::generateTagCloud('loved', 'artist', 10, 'userid', $user->uniqueid); $smarty->assign('lovedArtists', $lovedArtists); } $smarty->assign('isme', ($this_user->name == $user->name)); -- GitLab