summaryrefslogtreecommitdiffstats
path: root/server/localplay.ajax.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-20 07:39:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-20 07:39:45 +0000
commit1dfdf2afab8da95da8c814e3838b3393d88ae53c (patch)
treef97be5925ed2dbef028d0902861771ea0a3ec473 /server/localplay.ajax.php
parent649c44446a2368ac004ffa5778704f7213cf54ad (diff)
downloadampache-1dfdf2afab8da95da8c814e3838b3393d88ae53c.tar.gz
ampache-1dfdf2afab8da95da8c814e3838b3393d88ae53c.tar.bz2
ampache-1dfdf2afab8da95da8c814e3838b3393d88ae53c.zip
made localplay technically work, lots of work to still do
Diffstat (limited to 'server/localplay.ajax.php')
-rw-r--r--server/localplay.ajax.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/localplay.ajax.php b/server/localplay.ajax.php
index 7153b344..78142b18 100644
--- a/server/localplay.ajax.php
+++ b/server/localplay.ajax.php
@@ -29,7 +29,10 @@ switch ($_REQUEST['action']) {
// Make sure they they are allowed to do this
//... ok I don't really know what that means yet
+ $type = $_REQUEST['instance'] ? 'localplay' : 'stream';
+
Preference::update('mpd_active',$GLOBALS['user']->id,$_REQUEST['instance']);
+ Preference::update('play_type',$GLOBALS['user']->id,$type);
break;
default: