From 2878f7eebdb1cf4f7f6e597760581267cff35637 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 8 May 2008 15:32:01 +0000 Subject: fixed lack of refresh when switching between localplay and other play methods --- docs/CHANGELOG | 2 ++ lib/class/xmldata.class.php | 2 +- server/stream.ajax.php | 16 +++++++++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 88f361a2..789fd718 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.4 + - Fixed lack of refresh of controls when switching between localplay + and other play methods - Add Debug page with current configuration and php state information as well as links to generate new config file and reset database charset diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 7f2e33f6..caeee032 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -1,7 +1,7 @@ id,$_POST['type']); + if (Preference::update('play_type',$GLOBALS['user']->id,$new)) { + Config::set('play_type',$new,'1'); + } + + + if (($new == 'localplay' AND $current != 'localplay') OR ($current == 'localplay' AND $new != 'localplay')) { + $results['rightbar'] = ajax_include('rightbar.inc.php'); + } + $results['rfc3514'] = '0x0'; + break; case 'basket': // We need to set the basket up! -- cgit