summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-14 07:38:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-14 07:38:22 +0000
commit1411a26beabed49bb5e9ac8c5cf29dd594fff578 (patch)
tree5b75eec7c9cad949b85b8330f3141b03eab34646 /admin
parent421805ce6ab1d3b2e0a16346c544eadf2d44f8be (diff)
downloadampache-1411a26beabed49bb5e9ac8c5cf29dd594fff578.tar.gz
ampache-1411a26beabed49bb5e9ac8c5cf29dd594fff578.tar.bz2
ampache-1411a26beabed49bb5e9ac8c5cf29dd594fff578.zip
one last little change to auto-enable localplay when enabling a localplay module
Diffstat (limited to 'admin')
-rw-r--r--admin/modules.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/modules.php b/admin/modules.php
index b7756b1c..f53a4130 100644
--- a/admin/modules.php
+++ b/admin/modules.php
@@ -41,6 +41,11 @@ switch ($_REQUEST['action']) {
}
// Install it!
$localplay->install();
+
+ // Go ahead and enable Localplay (Admin->System) as we assume they want to do that
+ // if they are enabling this
+ Prefernece::update('allow_localplay_playback','-1','1');
+
header("Location:" . Config::get('web_path') . '/admin/modules.php?action=show_localplay');
break;
case 'confirm_uninstall_localplay':