From 2c337852cff31297d681fb87d3098cc3d9041101 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 29 Feb 2008 06:14:46 +0000 Subject: major corrections to reading of preferences and a few misc fixes which I have now forgotten --- templates/list_header.inc.php | 2 +- templates/rightbar.inc.php | 2 +- templates/show_localplay.inc.php | 47 -------------------------------- templates/show_playlist_song_row.inc.php | 2 +- templates/show_playtype_switch.inc.php | 4 +-- templates/show_song_row.inc.php | 2 +- templates/sidebar_localplay.inc.php | 5 ++-- 7 files changed, 8 insertions(+), 56 deletions(-) delete mode 100644 templates/show_localplay.inc.php (limited to 'templates') diff --git a/templates/list_header.inc.php b/templates/list_header.inc.php index 551c37bc..e9cad734 100644 --- a/templates/list_header.inc.php +++ b/templates/list_header.inc.php @@ -27,7 +27,7 @@ */ // Pull these variables out to allow shorthand (easier for lazy programmers) -$limit = $GLOBALS['user']->prefs['offset_limit'] ? $GLOBALS['user']->prefs['offset_limit'] : '25'; +$limit = Config::get('offset_limit') ? Config::get('offset_limit') : '25'; $start = Browse::$start; $total = Browse::$total_objects; $uid = Config::get('list_header_uid'); diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php index bf1322e1..26ec3691 100644 --- a/templates/rightbar.inc.php +++ b/templates/rightbar.inc.php @@ -70,7 +70,7 @@ -prefs['play_type'] == 'localplay') { require_once Config::get('prefix') . '/templates/show_localplay_control.inc.php'; } ?> +