From a31560aec4f004e58930277758f5412d86c62adc Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 23 Apr 2007 07:31:05 +0000 Subject: it technically logs in and streams.. but thats it, complete rewrite almost everything broken --- lib/song.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'lib/song.php') diff --git a/lib/song.php b/lib/song.php index 57fab392..5a26d183 100644 --- a/lib/song.php +++ b/lib/song.php @@ -88,12 +88,12 @@ function get_recently_played() { "FROM object_count " . "WHERE object_type='song' " . "ORDER by object_count.date DESC " . - "LIMIT " . conf('popular_threshold'); - $db_results = mysql_query($sql, dbh()); + "LIMIT " . Config::get('popular_threshold'); + $db_results = Dba::query($sql); $results = array(); - while ($r = mysql_fetch_assoc($db_results)) { + while ($r = Dba::fetch_assoc($db_results)) { $results[] = $r; } @@ -101,16 +101,6 @@ function get_recently_played() { } // get_recently_played -/*! - @function format_song - @discussion takes a song array and makes it html friendly -*/ -function format_song($song) { - - return $song; - -} // format_song - /** * get_popular_songs * This returns the current popular songs -- cgit