summaryrefslogtreecommitdiffstats
path: root/modules/plugins
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-12 07:30:55 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-12 07:30:55 +0000
commitbff9e37fa5fa41111b5b06ce6cdcb0eb8e5c21f9 (patch)
treef9f61787479b286e5ae5efb96447107c10dd553e /modules/plugins
parentc99ad11ee04fa811aaf6988a2daa0567ab6ee0d8 (diff)
downloadampache-bff9e37fa5fa41111b5b06ce6cdcb0eb8e5c21f9.tar.gz
ampache-bff9e37fa5fa41111b5b06ce6cdcb0eb8e5c21f9.tar.bz2
ampache-bff9e37fa5fa41111b5b06ce6cdcb0eb8e5c21f9.zip
more work on the localplay stuff, most details ironed out, just needs some code to back it up, also tweaked plugins and threw in some extra goodies in the preference class, also pimped out the error class
Diffstat (limited to 'modules/plugins')
-rw-r--r--modules/plugins/Lastfm.plugin.php10
-rw-r--r--modules/plugins/OpenStrands.plugin.php5
2 files changed, 8 insertions, 7 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php
index 098e01e8..0d9c4b18 100644
--- a/modules/plugins/Lastfm.plugin.php
+++ b/modules/plugins/Lastfm.plugin.php
@@ -70,10 +70,12 @@ class AmpacheLastfm {
*/
public function uninstall() {
- /* We need to remove the preivously added preferences */
- $sql = "DELETE FROM `preference` WHERE `name`='lastfm_pass' OR `name`='lastfm_user' " .
- "OR `name`='lastfm_url' OR `name`='lastfm_host' OR `name`='lastfm_port' OR `name`='lastfm_challenge'";
- $db_results = Dba::query($sql);
+ Preference::delete('lastfm_pass');
+ Preference::delete('lastfm_user');
+ Preference::delete('lastfm_url');
+ Preference::delete('lastfm_host');
+ Preference::delete('lastfm_port');
+ Preference::delete('lastfm_challenge');
} // uninstall
diff --git a/modules/plugins/OpenStrands.plugin.php b/modules/plugins/OpenStrands.plugin.php
index f57529b9..d63e9616 100644
--- a/modules/plugins/OpenStrands.plugin.php
+++ b/modules/plugins/OpenStrands.plugin.php
@@ -57,9 +57,8 @@ class AmpacheOpenStrands {
*/
function uninstall() {
- /* We need to remove the preivously added preferences */
- $sql = "DELETE FROM `preference` WHERE `name`='mystrands_pass' OR `name`='mystrands_user'";
- $db_results = Dba::query($sql);
+ Preference::delete('mystrands_pass');
+ Preference::delete('mystrands_user');
} // uninstall