summaryrefslogtreecommitdiffstats
path: root/lib/class/localplay.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 05:16:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 05:16:20 +0000
commit689517e332c874ac09bb41398602622a1fc36af8 (patch)
treec97a077bd164e594211ed213405eb0cfbbf77b1c /lib/class/localplay.class.php
parent7327a025db941554501bbbe79c057fa308fb205c (diff)
downloadampache-689517e332c874ac09bb41398602622a1fc36af8.tar.gz
ampache-689517e332c874ac09bb41398602622a1fc36af8.tar.bz2
ampache-689517e332c874ac09bb41398602622a1fc36af8.zip
fixed preferences mostly, also fixed some genre issues and other stuff I am forgetting now
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r--lib/class/localplay.class.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php
index 4c12aaef..78a3c70e 100644
--- a/lib/class/localplay.class.php
+++ b/lib/class/localplay.class.php
@@ -23,15 +23,15 @@
class Localplay {
/* Base Variables */
- var $type;
+ public $type;
/* Built Variables */
- var $_function_map = array();
- var $_template;
- var $_preferences = array();
- var $_player;
+ public $_function_map = array();
+ public $_template;
+ public $_preferences = array();
+ public $_player;
/**
@@ -42,7 +42,6 @@ class Localplay {
*/
function Localplay($type) {
-
$this->type = $type;
$this->_get_info();
@@ -57,11 +56,10 @@ class Localplay {
* any failures, fatal errors will actually return something to the
* gui
*/
- function _get_info() {
+ private function _get_info() {
$this->_load_player();
-
} // _get_info
@@ -71,11 +69,11 @@ class Localplay {
* Will interface with in order to make all this magical stuf work
* all LocalPlay modules should be located in /modules/<name>/<name>.class.php
*/
- function _load_player() {
+ private function _load_player() {
if (!$this->type) { return false; }
- $filename = conf('prefix') . '/modules/localplay/' . $this->type . '.controller.php';
+ $filename = Config::get('prefix') . '/modules/localplay/' . $this->type . '.controller.php';
$include = require_once ($filename);
if (!$include) {