diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 21:42:42 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 21:42:42 +0000 |
commit | 3fa94f564493d930f5049526e18d35c1213ba9ca (patch) | |
tree | 6c6dfe75bd3ade082cc9d69be457b281e4248c89 /lib/class/album.class.php | |
parent | e46b19547e7d16999b05577ec64631cc12796355 (diff) | |
download | ampache-3fa94f564493d930f5049526e18d35c1213ba9ca.tar.gz ampache-3fa94f564493d930f5049526e18d35c1213ba9ca.tar.bz2 ampache-3fa94f564493d930f5049526e18d35c1213ba9ca.zip |
fixed a few more warnings, fixed artist editing and improved album editing a little (so it cleans up after its self)
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 45e03bd9..02da0a10 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -625,8 +625,6 @@ class Album { */ public function update($data) { - // Sadly we need a catalog object here - $catalog = new Catalog(); $year = $data['year']; $artist = $data['artist']; @@ -641,9 +639,10 @@ class Album { Song::update_artist($artist,$song_id); } $updated = 1; + Catalog::clean_artists(); } - $album_id = $catalog->check_album($name,$year); + $album_id = Catalog::check_album($name,$year); if ($album_id != $this->id) { if (!is_array($songs)) { $songs = $this->get_songs(); } foreach ($songs as $song_id) { @@ -652,6 +651,7 @@ class Album { } $current_id = $album_id; $updated = 1; + Catalog::clean_albums(); } if ($updated) { @@ -660,6 +660,7 @@ class Album { Flag::add($song_id,'song','retag','Interface Album Update'); Song::update_utime($song_id); } // foreach song of album + Catalog::clean_stats(); } // if updated |