diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-02-08 02:27:14 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-02-08 02:27:14 +0000 |
commit | 9d6ca07ecbe8cdf3f92d61366d4a53c6b609d1f1 (patch) | |
tree | 6d98288192c059cf3453bcca8c54c68e96a239ac /templates/show_democratic_playlist.inc.php | |
parent | db464555820830458e883c962f0b9482d177564b (diff) | |
download | ampache-9d6ca07ecbe8cdf3f92d61366d4a53c6b609d1f1.tar.gz ampache-9d6ca07ecbe8cdf3f92d61366d4a53c6b609d1f1.tar.bz2 ampache-9d6ca07ecbe8cdf3f92d61366d4a53c6b609d1f1.zip |
more tweaks to the democratic playlist, move the play command out front also clean up now playing on localplay status box
Diffstat (limited to 'templates/show_democratic_playlist.inc.php')
-rw-r--r-- | templates/show_democratic_playlist.inc.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/templates/show_democratic_playlist.inc.php b/templates/show_democratic_playlist.inc.php index 5f692e54..e65a81ad 100644 --- a/templates/show_democratic_playlist.inc.php +++ b/templates/show_democratic_playlist.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -26,12 +26,12 @@ $web_path = Config::get('web_path'); <col id="col_votes" /> <col id="col_song" /> <col id="col_time" /> - <?php if ($GLOBALS['user']->has_access(100)) { ?> + <?php if (Access::check('interface','100')) { ?> <col id="col_admin" /> <?php } ?> </colgroup> <?php -if (!count($objects)) { +if (!count($object_ids)) { $playlist = new Playlist($democratic->base_playlist); ?> <tr> @@ -52,13 +52,14 @@ else { <th class="cel_votes"><?php echo _('Votes'); ?></th> <th class="cel_song"><?php echo _('Song'); ?></th> <th class="cel_time"><?php echo _('Time'); ?></th> - <?php if ($GLOBALS['user']->has_access(100)) { ?> + <?php if (Access::check('interface','100')) { ?> <th class="cel_admin"><?php echo _('Admin'); ?></th> <?php } ?> </tr> <?php - -foreach($objects as $row_id=>$object_data) { +$democratic = Democratic::get_current_playlist(); +$democratic->set_parent(); +foreach($object_ids as $row_id=>$object_data) { $song = new Song($object_data['0']); $song->format(); ?> |