diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-14 04:56:52 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-14 04:56:52 +0000 |
commit | 0a184d3db49a3263c1336fd679df898ca6800f4a (patch) | |
tree | 7d61e5990df4629ee8b2c3a1da722f635791896e /lib/class/artist.class.php | |
parent | 5c510357a83f6a25ede6362a267c9d3569daf005 (diff) | |
download | ampache-0a184d3db49a3263c1336fd679df898ca6800f4a.tar.gz ampache-0a184d3db49a3263c1336fd679df898ca6800f4a.tar.bz2 ampache-0a184d3db49a3263c1336fd679df898ca6800f4a.zip |
make the disabled songs link show something, need to make a custom view for that as the song one i not really valid, also played around with the caching a bit
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r-- | lib/class/artist.class.php | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index f5591018..f55fd999 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -48,7 +48,7 @@ class Artist extends database_object { $this->id = intval($id); /* Get the information from the db */ - $info = $this->_get_info(); + $info = $this->get_info(); foreach ($info as $key=>$value) { $this->$key = $value; @@ -93,30 +93,6 @@ class Artist extends database_object { } // build_cache /** - * _get_info - * get's the vars for $this out of the database taken from the object - */ - private function _get_info() { - - $id = intval($this->id); - - if (parent::is_cached('artist',$id)) { - return parent::get_from_cache('artist',$id); - } - - /* Grab the basic information from the catalog and return it */ - $sql = "SELECT * FROM artist WHERE id='$id'"; - $db_results = Dba::query($sql); - - $results = Dba::fetch_assoc($db_results); - - parent::add_to_cache('artist',$id,$results); - - return $results; - - } // _get_info - - /** * get_from_name * This gets an artist object based on the artist name */ |