summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-20 02:59:31 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-20 02:59:31 +0000
commitd62207327c99ea070985d46eaa8399b139914a86 (patch)
tree2b44571cd8639a27b1649f97c57c02b5cb5e5395 /modules
parentb47b6976239b8e35284c9fa84610cec2dd6d4cd4 (diff)
downloadampache-d62207327c99ea070985d46eaa8399b139914a86.tar.gz
ampache-d62207327c99ea070985d46eaa8399b139914a86.tar.bz2
ampache-d62207327c99ea070985d46eaa8399b139914a86.zip
* Added new icons, and speed up icon display
* Fixed ORDER BY `track` on play selected * Started work on editing/flagging albums and artists
Diffstat (limited to 'modules')
-rw-r--r--modules/lib.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/lib.php b/modules/lib.php
index 93e4c812..6e06d7f8 100644
--- a/modules/lib.php
+++ b/modules/lib.php
@@ -9,37 +9,6 @@
*/
-
-
-// Used by playlist functions when you have an array of something of type
-// and you want to extract the songs from it whether type is artists or albums
-function get_songs_from_type ($type, $results, $artist_id = 0) {
-
- $dbh = dbh();
-
- $count = 0;
- $song = array();
-
- foreach ($results as $value) {
-
- // special case from the album view where we don't want every orphan
- if ($type == 'album' && ($value == 'orphans' || $artist_id != 0)) {
- $sql = "SELECT id FROM song WHERE $type = '$value' AND artist = '$artist_id'";
- $db_result = mysql_query($sql, $dbh);
- }
- else {
- $sql = "SELECT id FROM song WHERE $type = '$value'";
- $db_result = mysql_query($sql, $dbh);
- }
-
- while ( $r = mysql_fetch_row($db_result) ) {
- $song[$count] = $r[0];
- $count++;
- }
- }
- return $song;
-}
-
// This function makes baby vollmer cry, need to fix
//FIXME
function get_artist_info ($artist_id) {