We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 7c5499f8 authored by clint's avatar clint

patch from idflood to use geturl

parent bb4e014f
......@@ -19,6 +19,7 @@
*/
require_once($install_path . '/database.php');
require_once($install_path . '/data/Server.php');
class TagCloud {
/*
......@@ -55,6 +56,11 @@ class TagCloud {
foreach($data as $count => &$i) {
$i['size'] = $sizes[(int) ($count/(count($data)/7))];
}
foreach($data as &$i){
$i['pageurl'] = Server::getArtistURL($i['artist']);
}
sort($data);
return $data;
}
......
......@@ -81,7 +81,7 @@
<ul class="tagcloud" about="{$id}">
{section name=i loop=$user_tagcloud}
<li style="font-size:{$user_tagcloud[i].size}"><a
href="{$base_url}/artist/{$user_tagcloud[i].artist|escape:'url':'UTF-8'}" rel="{if $user_tagcloud[i].size|substr:-5 ==
href="{$user_tagcloud[i].pageurl}" rel="{if $user_tagcloud[i].size|substr:-5 ==
'large'}foaf:interest {/if}tag">{$user_tagcloud[i].artist|escape:"html":"UTF-8"}</a></li>
{/section}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment