diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2013-01-14 23:17:14 -0500 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2013-01-15 01:26:38 -0500 |
commit | 4be88447e80fb004492cb239110fd56a7b85c42f (patch) | |
tree | 24b4d2172b80a47fed7c04a9d880383c56c4b39b /lib/class/localplay.class.php | |
parent | 4818baade2f837154aa0a3e6aa6fb8e33f02708c (diff) | |
download | ampache-4be88447e80fb004492cb239110fd56a7b85c42f.tar.gz ampache-4be88447e80fb004492cb239110fd56a7b85c42f.tar.bz2 ampache-4be88447e80fb004492cb239110fd56a7b85c42f.zip |
Break Localplay->add(), it's been replaced
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index fb6e65f1..61457fc6 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -280,17 +280,11 @@ class Localplay { /** * add - * This function takes a single object and then passes it to - * to the player, this is a required function. */ public function add($object) { - if (!$this->_player->add($object)) { - debug_event('localplay', 'Failed to add songs, check ' . $this->type . ' controller', 1); - return false; - } - - return true; + debug_event('localplay', 'Deprecated add method called: ' . json_encode($object), 5); + return false; } // add @@ -298,7 +292,7 @@ class Localplay { * add_url * This directly adds an URL to the localplay module. Is more betterer. */ - public function add_url($url) { + public function add_url(Stream_URL $url) { if (!$this->_player->add_url($url)) { debug_event('localplay', 'Unable to add url ' . $url . ', check ' . $this->type . ' controller', 1); |