diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-06 06:22:04 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-06 06:22:04 +0000 |
commit | 9ece92a2ef452665a197dbebafcabac1ad8b3b14 (patch) | |
tree | 97df3195265eefa3b741113ad5a5022681db3b03 | |
parent | 065e228c184aa3043dbb93c701d8c2a8cfb05b1e (diff) | |
download | ampache-9ece92a2ef452665a197dbebafcabac1ad8b3b14.tar.gz ampache-9ece92a2ef452665a197dbebafcabac1ad8b3b14.tar.bz2 ampache-9ece92a2ef452665a197dbebafcabac1ad8b3b14.zip |
fix typos
-rw-r--r-- | lib/class/localplay.class.php | 4 | ||||
-rw-r--r-- | modules/init.php | 1 | ||||
-rw-r--r-- | modules/localplay/mpd.controller.php | 10 |
3 files changed, 9 insertions, 6 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 9e9cabaf..dc59f6af 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -43,7 +43,9 @@ class Localplay { function Localplay($type) { + $this->type = $type; + $this->_get_info(); } // Localplay @@ -58,7 +60,7 @@ class Localplay { */ function _get_info() { - + $this->_load_player(); } // _get_info diff --git a/modules/init.php b/modules/init.php index a46585ea..bf4f9445 100644 --- a/modules/init.php +++ b/modules/init.php @@ -178,6 +178,7 @@ if (conf('ratings')) { } // Classes +require_once(conf('prefix') . '/lib/class/localplay.class.php'); require_once(conf('prefix') . '/lib/class/catalog.class.php'); require_once(conf('prefix') . '/lib/class/stream.class.php'); require_once(conf('prefix') . '/lib/class/playlist.class.php'); diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index 19ceab70..5bb2f992 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -31,7 +31,7 @@ class AmpacheMpd { /* Constructed variables */ - $_mpd; + var $_mpd; /** * Constructor @@ -88,7 +88,7 @@ class AmpacheMpd { foreach ($songs as $song_id) { $song = new Song($song_id); $url = $song->get_url(); - if (is_null($this->_mpd->PlAdd($url)) { + if (is_null($this->_mpd->PlAdd($url))) { debug_event('mpd_add','Error: Unable to add $url to MPD ' . $this->_mpd->errStr,'1'); } @@ -117,7 +117,7 @@ class AmpacheMpd { */ foreach ($songs as $uid) { - if (is_null($this->_mpd->PLRemove($uid)) { $return = false; } + if (is_null($this->_mpd->PLRemove($uid))) { $return = false; } } // foreach of songs @@ -133,7 +133,7 @@ class AmpacheMpd { */ function play() { - if (is_null($this->_mpd->Play()) { return false; } + if (is_null($this->_mpd->Play())) { return false; } return true; @@ -146,7 +146,7 @@ class AmpacheMpd { */ function stop() { - if (is_null($this->_mpd->Stop()) { return false; } + if (is_null($this->_mpd->Stop())) { return false; } return true; |