summaryrefslogtreecommitdiffstats
path: root/lib/song.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/song.php')
-rw-r--r--lib/song.php16
1 files changed, 3 insertions, 13 deletions
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