summaryrefslogtreecommitdiffstats
path: root/templates/sidebar_localplay.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-29 06:14:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-29 06:14:46 +0000
commit2c337852cff31297d681fb87d3098cc3d9041101 (patch)
tree9853ce94387c4cc7756575598dfb1e2de44a8589 /templates/sidebar_localplay.inc.php
parentc1f2b35e2a18b0752746f5db5794cf18714bc71d (diff)
downloadampache-2c337852cff31297d681fb87d3098cc3d9041101.tar.gz
ampache-2c337852cff31297d681fb87d3098cc3d9041101.tar.bz2
ampache-2c337852cff31297d681fb87d3098cc3d9041101.zip
major corrections to reading of preferences and a few misc fixes which I have now forgotten
Diffstat (limited to 'templates/sidebar_localplay.inc.php')
-rw-r--r--templates/sidebar_localplay.inc.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/sidebar_localplay.inc.php b/templates/sidebar_localplay.inc.php
index ceaf6901..5e2e79ff 100644
--- a/templates/sidebar_localplay.inc.php
+++ b/templates/sidebar_localplay.inc.php
@@ -18,14 +18,13 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
?>
<ul class="sb2" id="sb_localplay">
-<?php if (Config::get('allow_localplay_playback') AND $GLOBALS['user']->prefs['localplay_controller'] AND Access::check('localplay','5')) { ?>
+<?php if (Config::get('allow_localplay_playback') AND Config::get('localplay_controller') AND Access::check('localplay','5')) { ?>
<?php
// Little bit of work to be done here
- $localplay = new Localplay($GLOBALS['user']->prefs['localplay_controller']);
+ $localplay = new Localplay(Config::get('localplay_controller'));
$current_instance = $localplay->current_instance();
$class = $current_instance ? '' : ' class="active_instance"';
?>