summaryrefslogtreecommitdiffstats
path: root/lib/song.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
commita31560aec4f004e58930277758f5412d86c62adc (patch)
tree845ff6947d26b22a0f4527901dbefc97bca89d78 /lib/song.php
parent8b27d66add7ca9ba57d7e9488612cb54be4b11c1 (diff)
downloadampache-a31560aec4f004e58930277758f5412d86c62adc.tar.gz
ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.bz2
ampache-a31560aec4f004e58930277758f5412d86c62adc.zip
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
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