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 | |
parent | 4818baade2f837154aa0a3e6aa6fb8e33f02708c (diff) | |
download | ampache-4be88447e80fb004492cb239110fd56a7b85c42f.tar.gz ampache-4be88447e80fb004492cb239110fd56a7b85c42f.tar.bz2 ampache-4be88447e80fb004492cb239110fd56a7b85c42f.zip |
Break Localplay->add(), it's been replaced
-rw-r--r-- | lib/class/localplay.class.php | 12 | ||||
-rw-r--r-- | lib/class/localplay_controller.abstract.php | 2 |
2 files changed, 4 insertions, 10 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); diff --git a/lib/class/localplay_controller.abstract.php b/lib/class/localplay_controller.abstract.php index 5e9d8b3c..8d7224f0 100644 --- a/lib/class/localplay_controller.abstract.php +++ b/lib/class/localplay_controller.abstract.php @@ -40,7 +40,7 @@ abstract class localplay_controller { // Required Functions - abstract public function add($objects); // Takes an array of song_ids + abstract public function add_url(Stream_URL $url); // Takes an array of song_ids abstract public function delete_track($object_id); // Takes a single object_id and removes it from the playlist abstract public function play(); abstract public function stop(); |