diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 21:07:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 21:07:45 +0000 |
commit | b1b7998a0f9a6438725fb574e63e27859a6bd2e6 (patch) | |
tree | 36da3f5548f891dbaee3f626bfd2be7457cde967 /lib | |
parent | d6b68f501f8d378ce2ecabb2f9f423ee234f8ab5 (diff) | |
download | ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.tar.gz ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.tar.bz2 ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.zip |
few minor bug fixes, and some more tweaks for localplay
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/localplay.abstract.php | 5 | ||||
-rw-r--r-- | lib/class/localplay.class.php | 14 |
2 files changed, 5 insertions, 14 deletions
diff --git a/lib/class/localplay.abstract.php b/lib/class/localplay.abstract.php index bcf1079a..1874e390 100644 --- a/lib/class/localplay.abstract.php +++ b/lib/class/localplay.abstract.php @@ -34,7 +34,10 @@ abstract class localplay_controller { abstract public function status(); abstract public function get_version(); // Returns the version of this plugin abstract public function get_description(); // Returns the description - abstract public function get_preferences(); // Returns an array of the prefs needed + abstract public function actions(); // Return an array of name=>link actions for the sidebar + abstract public function is_installed(); // Returns an boolean t/f + abstract public function install(); + abstract public function uninstall(); /** * get_url diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index e048dd17..d9d19841 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -227,19 +227,7 @@ class Localplay { // If we can't even load it no sense in going on if (!isset($localplay->_player)) { return false; } - $preferences = $localplay->get_preferences(); - - foreach ($preferences as $preference) { - $name = 'localplay_' . $type . '_' . $preference['name']; - /* Check for existing record */ - $sql = "SELECT `id` FROM `preference` WHERE `name` = '" . Dba::escape($name) . "'"; - $db_results = Dba::query($sql); - - if (!Dba::num_rows($db_results)) { return false; } - - } // end foreach - - return true; + return $localplay->_player->is_installed(); } // is_enabled |