diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-14 07:04:26 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-14 07:04:26 +0000 |
commit | d1dcfcbc903153007fff2c155248046ecfbdc76a (patch) | |
tree | 400ed80dd1ce436818c893bb5f53d4b9d95443ec /templates/show_localplay_controllers.inc.php | |
parent | f2f82cae3114683dd230328a4638b8cb35b46c3b (diff) | |
download | ampache-d1dcfcbc903153007fff2c155248046ecfbdc76a.tar.gz ampache-d1dcfcbc903153007fff2c155248046ecfbdc76a.tar.bz2 ampache-d1dcfcbc903153007fff2c155248046ecfbdc76a.zip |
some fixes for the localplay, you can now install the MPD controller, and add instances, just not actually play to it... realized I need to think on how to do that a little...
Diffstat (limited to 'templates/show_localplay_controllers.inc.php')
-rw-r--r-- | templates/show_localplay_controllers.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/show_localplay_controllers.inc.php b/templates/show_localplay_controllers.inc.php index cfbe7e30..68611d45 100644 --- a/templates/show_localplay_controllers.inc.php +++ b/templates/show_localplay_controllers.inc.php @@ -33,7 +33,7 @@ foreach ($controllers as $controller) { $localplay = new Localplay($controller); if (!$localplay->player_loaded()) { continue; } $localplay->format(); - if ($localplay->is_enabled()) { + if (Localplay::is_enabled($controller)) { $action = 'confirm_uninstall_localplay'; $action_txt = _('Disable'); } @@ -46,7 +46,7 @@ foreach ($controllers as $controller) { <td><?php echo scrub_out($localplay->f_name); ?></td> <td><?php echo scrub_out($localplay->f_description); ?></td> <td><?php echo scrub_out($localplay->f_version); ?></td> - <td><a href="<?php echo $web_path; ?>/admin/modules.php?action=<?php echo $action; ?>&type="<?php urlencode($localplay->type); ?>"><?php echo $action_txt; ?></a></td> + <td><a href="<?php echo $web_path; ?>/admin/modules.php?action=<?php echo $action; ?>&type=<?php echo urlencode($controller); ?>"><?php echo $action_txt; ?></a></td> </tr> <?php } if (!count($controllers)) { ?> <tr class="<?php echo flip_class(); ?>"> |