diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/localplay/mpd.controller.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index 3c99e63f..b195744e 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -72,8 +72,8 @@ class AmpacheMpd { $map['pause'] = 'pause'; $map['volume_up'] = 'volume_up'; $map['volume_down'] = 'volume_down'; - $map['loop'] = 'loop'; $map['random'] = 'random'; + $map['repeat'] = 'loop'; /* Optional Functions */ $map['move'] = 'move'; @@ -268,10 +268,10 @@ class AmpacheMpd { * loop * This tells MPD to set the repeating the playlist (i.e. loop) to either on or off */ - function loop($onoff) { - - if (is_null($this->_mpd->SetRepeat($onoff))) { return false; } - return true; + function loop($state) { + + if (is_null($this->_mpd->SetRepeat($state))) { return false; } + return true; } // loop |