summaryrefslogtreecommitdiffstats
path: root/lib/localplay.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-31 06:55:54 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-31 06:55:54 +0000
commit00d74cac5a20c26017554b5e6eaef624b48f886e (patch)
treecfbe1dbf2d9759f9ebbe899728dbe199827b520e /lib/localplay.lib.php
parent49c1cefcb9a2dc3f81d868655e64d2e357750f9d (diff)
downloadampache-00d74cac5a20c26017554b5e6eaef624b48f886e.tar.gz
ampache-00d74cac5a20c26017554b5e6eaef624b48f886e.tar.bz2
ampache-00d74cac5a20c26017554b5e6eaef624b48f886e.zip
fixed something I thought I had already fixed, and fiddled with democratic play a tiny bit
Diffstat (limited to 'lib/localplay.lib.php')
-rw-r--r--lib/localplay.lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/localplay.lib.php b/lib/localplay.lib.php
index bd73853b..72807e91 100644
--- a/lib/localplay.lib.php
+++ b/lib/localplay.lib.php
@@ -141,7 +141,7 @@ function remove_localplay_preferences($type=0) {
* This returns an array of the localplay controllers filenames
* as well as a 'semi-cleaned' name
*/
-function get_localplay_controllers() {
+function get_localplay_controllers($disabled='') {
/* First get a list of the files */
$handle = opendir(conf('prefix') . '/modules/localplay');
@@ -161,7 +161,7 @@ function get_localplay_controllers() {
/* Get the base name, then get everything before .controller.php */
$filename = basename($file,'.controller.php');
/* Make sure that it's currently enabled */
- if (verify_localplay_preferences($filename)) {
+ if (verify_localplay_preferences($filename) || $disabled) {
$results[] = $filename;
}
}