From f01dea587cf13007fd1f97c9d6d74a48b4da2239 Mon Sep 17 00:00:00 2001 From: clint <> Date: Wed, 6 May 2009 22:37:04 +0000 Subject: [PATCH] make all non-user artist tag clouds be free artists by default --- nixtape/artist.php | 2 +- nixtape/edit_group.php | 4 ++-- nixtape/explore.php | 2 +- nixtape/group.php | 2 +- nixtape/track.php | 2 +- nixtape/user-edit.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nixtape/artist.php b/nixtape/artist.php index 5d0c2723..8252f73a 100644 --- a/nixtape/artist.php +++ b/nixtape/artist.php @@ -32,7 +32,7 @@ $smarty->assign("name", $artist->name); $smarty->assign("id", $artist->id); $smarty->assign("bio_summary", $artist->bio_summary); -$aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); +$aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); } diff --git a/nixtape/edit_group.php b/nixtape/edit_group.php index 9845a66e..bbd41f55 100644 --- a/nixtape/edit_group.php +++ b/nixtape/edit_group.php @@ -44,7 +44,7 @@ if ($_REQUEST['group']=='new') else { $smarty->assign('newform', true); - $aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); + $aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); @@ -132,7 +132,7 @@ if(isset($group->name)) # And display the page. $smarty->assign('errors', $errors); $smarty->assign('newform', false); - $aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); + $aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); diff --git a/nixtape/explore.php b/nixtape/explore.php index ed645fe6..fec7cc22 100644 --- a/nixtape/explore.php +++ b/nixtape/explore.php @@ -27,7 +27,7 @@ require_once('data/Server.php'); require_once('data/TagCloud.php'); // This should be contextual based on the mode= parameter? -$aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); +$aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); } diff --git a/nixtape/group.php b/nixtape/group.php index 9d938c7c..f502469a 100644 --- a/nixtape/group.php +++ b/nixtape/group.php @@ -36,7 +36,7 @@ if (! $_GET['group']) 'href' => $base_url.'/rdf.php?fmt=xml&page='.htmlentities($_SERVER['REQUEST_URI']) ) )); - $aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); + $aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); diff --git a/nixtape/track.php b/nixtape/track.php index 4cd0aabc..20e7f576 100644 --- a/nixtape/track.php +++ b/nixtape/track.php @@ -33,7 +33,7 @@ $smarty->assign("albumurl", Server::getAlbumURL($track->artist_name, $track->alb $smarty->assign("artisturl", Server::getArtistURL($track->artist_name)); // no idea how this would be track-relevant -$aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); +$aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); } diff --git a/nixtape/user-edit.php b/nixtape/user-edit.php index fddd984e..78bd1002 100644 --- a/nixtape/user-edit.php +++ b/nixtape/user-edit.php @@ -170,7 +170,7 @@ if(isset($this_user->name)) } # And display the page. - $aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist'); + $aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist'); if (!PEAR::isError ($aTagCloud)) { $smarty->assign('tagcloud', $aTagCloud); -- GitLab