From d6caebe49a012f1dfeda78a0e664c97999952619 Mon Sep 17 00:00:00 2001 From: naomiaro Date: Tue, 9 Nov 2010 17:02:13 -0500 Subject: [PATCH] saving database row for fades... --- backend/Playlist.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/backend/Playlist.php b/backend/Playlist.php index 6c5fcdd74..3babc461e 100644 --- a/backend/Playlist.php +++ b/backend/Playlist.php @@ -326,14 +326,6 @@ class Playlist { */ public function getContents() { - /* - global $CC_CONFIG, $CC_DBC; - $sql = "SELECT * - FROM cc_playlistcontents C JOIN cc_files F ON C.file_id = F.id - WHERE C.playlist_id='{$this->getId()}' ORDER BY C.position"; - return $CC_DBC->getAll($sql); - */ - $files; $rows = CcPlaylistcontentsQuery::create() @@ -592,6 +584,8 @@ class Playlist { $row->setDbFadeout($fadeOut); } + + $row->save(); return array("fadeIn"=>$fadeIn, "fadeOut"=>$fadeOut); }