From ebdb7573bf4176b81264d2c66dd567fa3c3ee0bd Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 28 Sep 2006 05:39:50 +0000 Subject: fixed up localplay a little more, to the point of it basicly working... added check for mysql on installer langue page, tweaked some css as well --- modules/localplay/mpd.controller.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/localplay/mpd.controller.php') 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 -- cgit