librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1829] popular artist fix


From: Matt Lee
Subject: [Librefm-commits] [1829] popular artist fix
Date: Sun, 24 May 2009 21:54:30 +0000

Revision: 1829
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1829
Author:   mattl
Date:     2009-05-24 21:54:30 +0000 (Sun, 24 May 2009)
Log Message:
-----------
popular artist fix

Modified Paths:
--------------
    trunk/nixtape/artist.php

Modified: trunk/nixtape/artist.php
===================================================================
--- trunk/nixtape/artist.php    2009-05-24 21:45:15 UTC (rev 1828)
+++ trunk/nixtape/artist.php    2009-05-24 21:54:30 UTC (rev 1829)
@@ -26,6 +26,8 @@
 require_once('data/Server.php');
 require_once('data/TagCloud.php');
 
+if (!$_GET['popular']) {
+
 try {
        $artist = new Artist($_GET['artist']);
 } catch (exception $e) {
@@ -39,11 +41,6 @@
 $smarty->assign('id', $artist->id);
 $smarty->assign('bio_summary', $artist->bio_summary);
 
-$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
-if ($aTagCloud) {
-        $smarty->assign('tagcloud', $aTagCloud);
-}
-
 $aArtistAlbums = $artist->getAlbums();
 if ($aArtistAlbums) {
        $smarty->assign('albums', $aArtistAlbums);
@@ -60,4 +57,17 @@
 
 $smarty->display("artist.tpl");
 
+}
+
+else {
+
+$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
+if ($aTagCloud) {
+        $smarty->assign('tagcloud', $aTagCloud);
+}
+
+$smarty->display("top-artists.tpl");
+
+}
+
 ?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]