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/album.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/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index ad0f6ef5..184842b6 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -59,7 +59,7 @@ class Album extends database_object { $this->id = intval($id); /* Get the information from the db */ - $info = $this->_get_info(); + $info = $this->get_info(); // Foreach what we've got foreach ($info as $key=>$value) { @@ -111,32 +111,6 @@ class Album extends database_object { } // build_cache /** - * _get_info - * This is a private function that pulls the album - * from the database - */ - private function _get_info() { - - $id = intval($this->id); - - if (parent::is_cached('album',$id)) { - return parent::get_from_cache('album',$id); - } - - // Just get the album information - $sql = "SELECT * FROM `album` WHERE `id`='$id'"; - $db_results = Dba::query($sql); - - $results = Dba::fetch_assoc($db_results); - - // Cache the object - parent::add_to_cache('album',$id,$results); - - return $results; - - } // _get_info - - /** * _get_extra_info * This pulls the extra information from our tables, this is a 3 table join, which is why we don't normally * do it |