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

Commit 6d423eaf authored by Mike Sheldon's avatar Mike Sheldon

Fix indentation and error output in popular songs tagcloud generator

parent 0b2742e4
......@@ -11,17 +11,17 @@ $n=$_GET['n'];
$n=(int)$n;
if ($n < 1) {
$n=1000000;
$n=1000000;
}
try {
$aTagCloud = TagCloud::GenerateTagCloud('free_scrobbles', 'artist', $n);
try {
$aTagCloud = TagCloud::GenerateTagCloud('free_scrobbles', 'artist', $n);
$smarty->assign('tagcloud', $aTagCloud);
} catch (exception $e) {}
} catch (exception $e) {
$smarty->assign('errors', $errors);
$smarty->display('tagcloud.tpl');
$smarty->display('error.tpl');
die();
}
?>
\ No newline at end of file
$smarty->display('tagcloud.tpl');
?>
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