diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 18:42:14 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 21:46:00 -0500 |
commit | fbbb015950cbac84e423d55a2bb6910ddfc10df6 (patch) | |
tree | a0fe4c38c462e25575c3af2a216b85acaad4bd73 /lib/class/stream_playlist.class.php | |
parent | 0451840fa34dfcffd86a00be8dbda9e4abd3f4d3 (diff) | |
download | ampache-fbbb015950cbac84e423d55a2bb6910ddfc10df6.tar.gz ampache-fbbb015950cbac84e423d55a2bb6910ddfc10df6.tar.bz2 ampache-fbbb015950cbac84e423d55a2bb6910ddfc10df6.zip |
Use Session for stream sessions
Diffstat (limited to 'lib/class/stream_playlist.class.php')
-rw-r--r-- | lib/class/stream_playlist.class.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/class/stream_playlist.class.php b/lib/class/stream_playlist.class.php index 6ddb158e..b442bd4b 100644 --- a/lib/class/stream_playlist.class.php +++ b/lib/class/stream_playlist.class.php @@ -40,14 +40,14 @@ class Stream_Playlist { */ public function __construct($id = null) { - if($id) { + if ($id) { Stream::set_session($id); } - $this->id = Dba::escape(Stream::get_session()); + $this->id = Dba::escape(Stream::$session); - if (!Stream::session_exists($this->id)) { - debug_event('stream_playlist', 'Stream::session_exists failed', 2); + if (!Session::exists('stream', $this->id)) { + debug_event('stream_playlist', 'Session::exists failed', 2); return false; } @@ -87,9 +87,9 @@ class Stream_Playlist { public static function gc() { $sql = 'DELETE FROM `stream_playlist` ' . - 'USING `stream_playlist` LEFT JOIN `session_stream` ' . - 'ON `session_stream`.`id`=`stream_playlist`.`sid` ' . - 'WHERE `session_stream`.`id` IS NULL'; + 'USING `stream_playlist` LEFT JOIN `session` ' . + 'ON `session`.`id`=`stream_playlist`.`sid` ' . + 'WHERE `session`.`id` IS NULL'; return Dba::write($sql); } |