summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 05:53:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 05:53:26 +0000
commitf0addeb4a1700b6ad625726fe8c0793cdafa9fed (patch)
treeed2e4fef6759867bed8229116ae2e91b3b3da239 /lib
parent69b204fb1dcca77c177d3ac5ec7fb686fb5a5b58 (diff)
downloadampache-f0addeb4a1700b6ad625726fe8c0793cdafa9fed.tar.gz
ampache-f0addeb4a1700b6ad625726fe8c0793cdafa9fed.tar.bz2
ampache-f0addeb4a1700b6ad625726fe8c0793cdafa9fed.zip
added ability to view album art on browse ablums and removed redundent code in show_artist, props to the first person who finds the bug with this re-use of code
Diffstat (limited to 'lib')
-rw-r--r--lib/class/browse.class.php12
-rw-r--r--lib/class/metadata.class.php4
2 files changed, 14 insertions, 2 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index 7be9db02..a8fa538c 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -79,6 +79,18 @@ class Browse {
} // set_filter
/**
+ * get_filter
+ * returns the specified filter value
+ */
+ public static function get_filter($key) {
+
+ // Simple enough, but if we ever move this crap
+ return $_SESSION['browse']['filter'][$key];
+
+ } // get_filter
+
+
+ /**
* set_type
* This sets the type of object that we want to browse by
* we do this here so we only have to maintain a single whitelist
diff --git a/lib/class/metadata.class.php b/lib/class/metadata.class.php
index 39655f09..30a34f4b 100644
--- a/lib/class/metadata.class.php
+++ b/lib/class/metadata.class.php
@@ -66,14 +66,14 @@ class metadata {
$data['name'] = $item['ArtistName'];
$data['uid'] = $item['__attributes']['ArtistID'];
$data['mystrands_url'] = $item['URI'];
- $data['links'] = "<a target=\"_blank\" href=\"" . $item['URI'] . "\">" . get_user_icon('mystrands','MyStrands Link') . "</a>";
+ $data['links'] = "<a target=\"_blank\" href=\"" . $item['URI'] . "\">" . get_user_icon('world_link','MyStrands Link') . "</a>";
// Do a search for this artist in our instance
$artist_id = Catalog::check_artist($data['name'],1);
if ($artist_id) {
$artist = new Artist($artist_id);
$artist->format();
- $data['links'] .= "<a href=\"$artist->f_link\">" . get_user_icon('link','Ampache') . "</a>";
+ $data['links'] .= "<a href=\"$artist->f_link\">" . get_user_icon('ampache','Ampache') . "</a>";
}
$objects[] = Artist::construct_from_array($data);